aboutsummaryrefslogtreecommitdiffstats
path: root/src/notify.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/notify.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/notify.c b/src/notify.c
index 5aaecd0ad..e6bb98bba 100644
--- a/src/notify.c
+++ b/src/notify.c
@@ -43,9 +43,8 @@ void notify_deinit(struct notify *notify)
void notify_wait(struct notify *notify)
{
pthread_mutex_lock(&notify->mutex);
- if (!notify->pending)
+ while (!notify->pending)
pthread_cond_wait(&notify->cond, &notify->mutex);
- assert(notify->pending);
notify->pending = 0;
pthread_mutex_unlock(&notify->mutex);
}