Fixes an issue with locking
@@ -1536,6 +1536,7 @@ void celix_dmComponent_destroyComponentInfo(dm_component_info_pt info) {
bool celix_dmComponent_isActive(celix_dm_component_t *component) {
pthread_mutex_lock(&component->mutex);
- return component->active;
+ bool active = component->active;
pthread_mutex_unlock(&component->mutex);
+ return active;
}
