diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-09 12:07:20 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-09 12:07:20 +0200 |
commit | 88804db41aebf0075354e5ad6d7491d2fa08cf25 (patch) | |
tree | 598369c7c542289b359d390448f4b2bdd6b2ff47 /src/irmd/irm_flow.c | |
parent | 1dde324905796df4d7e468d7f0de027bb8dcedae (diff) | |
download | ouroboros-88804db41aebf0075354e5ad6d7491d2fa08cf25.tar.gz ouroboros-88804db41aebf0075354e5ad6d7491d2fa08cf25.zip |
irmd: Fix bad locking
Locks should be kept before calling cond_wait.
Diffstat (limited to 'src/irmd/irm_flow.c')
-rw-r--r-- | src/irmd/irm_flow.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/irmd/irm_flow.c b/src/irmd/irm_flow.c index 6531e4f6..bf67f2ce 100644 --- a/src/irmd/irm_flow.c +++ b/src/irmd/irm_flow.c @@ -64,7 +64,6 @@ void irm_flow_destroy(struct irm_flow * f) f->state = FLOW_NULL; pthread_cond_signal(&f->state_cond); - pthread_mutex_unlock(&f->state_lock); pthread_cleanup_push((void (*)(void *)) pthread_mutex_unlock, (void *) &f->state_lock); |