summaryrefslogtreecommitdiff
path: root/src/irmd/irm_flow.c
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-10-27 14:39:06 +0000
committerSander Vrijders <[email protected]>2016-10-27 14:39:06 +0000
commit6a61274c2289a06b4c23d5c8b2e36d924eb72a48 (patch)
tree8357ad4d44a16d37e03b0d5fe8efca2e0491159c /src/irmd/irm_flow.c
parent98547bfbd57b8824d38a3a5cdb2dd10bc8f5f187 (diff)
parent52b411b0388cecfeff36a4098305453b4aa239da (diff)
downloadouroboros-6a61274c2289a06b4c23d5c8b2e36d924eb72a48.tar.gz
ouroboros-6a61274c2289a06b4c23d5c8b2e36d924eb72a48.zip
Merged in dstaesse/ouroboros/be-irmd (pull request #289)
irmd: Fix check in irm_flow
Diffstat (limited to 'src/irmd/irm_flow.c')
-rw-r--r--src/irmd/irm_flow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irmd/irm_flow.c b/src/irmd/irm_flow.c
index ac854832..a228db06 100644
--- a/src/irmd/irm_flow.c
+++ b/src/irmd/irm_flow.c
@@ -130,7 +130,7 @@ enum flow_state irm_flow_wait_state(struct irm_flow * f, enum flow_state state)
while (!(f->state == state || f->state == FLOW_DESTROY))
pthread_cond_wait(&f->state_cond, &f->state_lock);
- if (state == FLOW_DESTROY) {
+ if (f->state == FLOW_DESTROY) {
f->state = FLOW_NULL;
pthread_cond_broadcast(&f->state_cond);
}