From 7f70149c95a4b848e464390477fb557eb231e2fd Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 25 Jan 2021 21:44:02 +0200 Subject: [PATCH] threads: don't assert on remove_child Investigate this, seems to hit in the wild. --- lib/mu-query-threads.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/mu-query-threads.cc b/lib/mu-query-threads.cc index 884d0e13..654db868 100644 --- a/lib/mu-query-threads.cc +++ b/lib/mu-query-threads.cc @@ -71,7 +71,9 @@ struct Container { assert(children.empty()); } void remove_child (Container& child) { - assert(has_child(child)); + if (!has_child(child)) + g_warning("not my child"); + //assert(has_child(child)); child.parent = {}; children.erase(&child); assert(!has_child(child));