diff options
Diffstat (limited to 'source3/lib/fncall.c')
-rw-r--r-- | source3/lib/fncall.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/lib/fncall.c b/source3/lib/fncall.c index 6e6b7c9250..79bf8260d9 100644 --- a/source3/lib/fncall.c +++ b/source3/lib/fncall.c @@ -280,8 +280,7 @@ static void fncall_handler(struct tevent_context *ev, struct tevent_fd *fde, int i, num_pending; int job_id; - job_id = pthreadpool_finished_job(ctx->pool); - if (job_id <= 0) { + if (pthreadpool_finished_job(ctx->pool, &job_id) != 0) { return; } |