diff options
Diffstat (limited to 'main/threadpool.c')
-rw-r--r-- | main/threadpool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/threadpool.c b/main/threadpool.c index 1b0477926..5ed9a42d1 100644 --- a/main/threadpool.c +++ b/main/threadpool.c @@ -784,7 +784,7 @@ static void worker_active(struct worker_thread *worker) { int alive = 1; while (alive) { - if (threadpool_execute(worker->pool)) { + if (threadpool_execute(worker->pool) == 0) { alive = worker_idle(worker); } } |