threads: don't assert on remove_child
Investigate this, seems to hit in the wild.
This commit is contained in:
@ -71,7 +71,9 @@ struct Container {
|
|||||||
assert(children.empty());
|
assert(children.empty());
|
||||||
}
|
}
|
||||||
void remove_child (Container& child) {
|
void remove_child (Container& child) {
|
||||||
assert(has_child(child));
|
if (!has_child(child))
|
||||||
|
g_warning("not my child");
|
||||||
|
//assert(has_child(child));
|
||||||
child.parent = {};
|
child.parent = {};
|
||||||
children.erase(&child);
|
children.erase(&child);
|
||||||
assert(!has_child(child));
|
assert(!has_child(child));
|
||||||
|
|||||||
Reference in New Issue
Block a user