summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-08-10 12:25:49 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-08-10 12:25:49 +0200
commit31b2edb845628e1d6b1b5b17821b060c152679af (patch)
treeb560f3f097363e95f03acff11ed5d1c151aeb891 /src/irmd/main.c
parent3eb6acfd135cdfb82d19a4f445776ea2f13fd4e1 (diff)
parent27c99995c8059eb897b704d84596ca0abca6db9b (diff)
downloadouroboros-31b2edb845628e1d6b1b5b17821b060c152679af.tar.gz
ouroboros-31b2edb845628e1d6b1b5b17821b060c152679af.zip
Merged in dstaesse/ouroboros/be-bugfixing (pull request #198)
bugfixes
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r--src/irmd/main.c4
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);