summaryrefslogtreecommitdiff
path: root/src/irmd/reg/flow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irmd/reg/flow.c')
-rw-r--r--src/irmd/reg/flow.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/irmd/reg/flow.c b/src/irmd/reg/flow.c
index 30b9c504..898f2604 100644
--- a/src/irmd/reg/flow.c
+++ b/src/irmd/reg/flow.c
@@ -197,15 +197,8 @@ int reg_flow_wait_state(struct reg_flow * f,
while (!(f->state == state ||
f->state == FLOW_DESTROY ||
f->state == FLOW_DEALLOC_PENDING) &&
- ret != -ETIMEDOUT) {
- if (dl != NULL)
- ret = -pthread_cond_timedwait(&f->cond,
- &f->mtx,
- dl);
- else
- ret = -pthread_cond_wait(&f->cond,
- &f->mtx);
- }
+ ret != -ETIMEDOUT)
+ ret = -__timedwait(&f->cond, &f->mtx, dl);
if (f->state == FLOW_DESTROY ||
f->state == FLOW_DEALLOC_PENDING ||