diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/irmd/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c index 8503fcfa..f9f34416 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -1402,10 +1402,10 @@ void * irm_flow_cleaner() pthread_rwlock_unlock(&irmd->flows_lock); - registry_sanitize_apis(&irmd->registry); - pthread_rwlock_wrlock(&irmd->reg_lock); + registry_sanitize_apis(&irmd->registry); + list_for_each_safe(pos, n, &irmd->spawned_apis) { struct spawned_api * api = list_entry(pos, struct spawned_api, next); |