diff --git a/src/async/async.c b/src/async/async.c index 7d37ac7f8..8610abb1d 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); - list_move(&w->le, &async->freel); + /* No move to free list since queueh must always handled */ mtx_unlock(w->mtx); } @@ -351,7 +351,7 @@ void re_async_cancel(struct re_async *async, intptr_t id) w->workh = NULL; w->cb = NULL; w->arg = mem_deref(w->arg); - list_move(&w->le, &async->freel); + /* No move to free list since queueh must always handled */ mtx_unlock(w->mtx); }