summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--misc/dispatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/dispatch.c b/misc/dispatch.c
index dca39e5fe1..40729d9e8d 100644
--- a/misc/dispatch.c
+++ b/misc/dispatch.c
@@ -249,7 +249,7 @@ void mp_dispatch_queue_process(struct mp_dispatch_queue *queue, double timeout)
} else if (wait > 0 && !queue->interrupted) {
struct timespec ts = mp_time_us_to_timespec(wait);
if (pthread_cond_timedwait(&queue->cond, &queue->lock, &ts))
- break;
+ wait = 0;
} else {
break;
}