summaryrefslogtreecommitdiff
path: root/src/irmd
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-30 10:49:31 +0100
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-30 10:49:31 +0100
commit4c72c5065411a394f04faebbe0a574a7e1f3e65f (patch)
tree08405f4e98d8e1a3659481b073f007c2a1a816d9 /src/irmd
parent5d01776443c0a500ffbc79a36745b07b8628bd62 (diff)
downloadouroboros-4c72c5065411a394f04faebbe0a574a7e1f3e65f.tar.gz
ouroboros-4c72c5065411a394f04faebbe0a574a7e1f3e65f.zip
irmd: Fix irmd state check
Diffstat (limited to 'src/irmd')
-rw-r--r--src/irmd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index 2bb933c4..6e3f952f 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -974,7 +974,7 @@ static struct irm_flow * flow_accept(pid_t api, char ** dst_ae_name)
pthread_rwlock_rdlock(&irmd->state_lock);
if (irmd->state != IRMD_RUNNING) {
pthread_rwlock_unlock(&irmd->state_lock);
- break;
+ return NULL;
}
pthread_rwlock_unlock(&irmd->state_lock);
}