From dc2dc8d08a74954744fcf4fd6079bc6bcf1441b8 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Wed, 23 Nov 2022 20:54:56 -0500 Subject: [PATCH] task: delete the queue after deleting all of its children This was resulting in an assertion failure later on if a queue was being rescued from a deleted task with only one post-exec queue. Signed-off-by: Zygo Blaxell --- lib/task.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/task.cc b/lib/task.cc index 2bb2ff1..647e821 100644 --- a/lib/task.cc +++ b/lib/task.cc @@ -259,6 +259,7 @@ namespace crucible { for (auto &i : tq) { i->clear(); } + tq.clear(); } void