summaryrefslogtreecommitdiff
path: root/main/threadpool.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/threadpool.c')
-rw-r--r--main/threadpool.c2
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);
}
}