fixup! Add reference counting for enqueued tasks

This commit is contained in:
Ondřej Surý
2021-05-05 17:14:00 +02:00
committed by Petr Špaček
parent dbb9df69cd
commit 58907b2239

View File

@@ -877,8 +877,7 @@ task_run(isc_task_t *task) {
*/
XTRACE("empty");
if (isc_refcount_current(&task->references) == 0 &&
TASK_SHUTTINGDOWN(task))
{
TASK_SHUTTINGDOWN(task)) {
/*
* The task is done.
*/