From 9ddd4b0d968f8753621925607b2b94632dceb044 Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Tue, 31 Oct 2023 12:44:01 +0100 Subject: [PATCH] fix workl handling --- src/async/async.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/async/async.c b/src/async/async.c index 8610abb1d..8f8a248f4 100644 --- a/src/async/async.c +++ b/src/async/async.c @@ -333,7 +333,7 @@ void re_async_cancel(struct re_async *async, intptr_t id) w->workh = NULL; w->cb = NULL; w->arg = mem_deref(w->arg); - /* No move to free list since queueh must always handled */ + list_move(&w->le, &async->freel); mtx_unlock(w->mtx); } @@ -351,7 +351,8 @@ void re_async_cancel(struct re_async *async, intptr_t id) w->workh = NULL; w->cb = NULL; w->arg = mem_deref(w->arg); - /* No move to free list since queueh must always handled */ + /* No move to free list since queueh must always handled if + * mqueu_push is called*/ mtx_unlock(w->mtx); }