From 4db5e301774fee32a884ddca1d7e26708d0636a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Wed, 19 May 2021 08:27:16 +0200 Subject: [PATCH] Run shutdown events with the task's existing threadid Previously, task->threadid was reassigned to 0 while shutting down, which caused an assertion. --- lib/isc/task.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/isc/task.c b/lib/isc/task.c index 21d6593d73..937164e93f 100644 --- a/lib/isc/task.c +++ b/lib/isc/task.c @@ -1020,7 +1020,6 @@ isc__taskmgr_shutdown(isc_taskmgr_t *manager) { { LOCK(&task->lock); if (task_shutdown(task)) { - task->threadid = 0; task_ready(task); } UNLOCK(&task->lock);