threads: avoid assert
The assert failure was spotted in the wild... we need to investigate, but we can ignore it now to avoid SIGABRT.
This commit is contained in:
@ -292,8 +292,13 @@ prune_empty_containers (Container& container)
|
|||||||
|
|
||||||
if (container.children.empty()) {
|
if (container.children.empty()) {
|
||||||
// If it is an empty container with no children, nuke it.
|
// If it is an empty container with no children, nuke it.
|
||||||
if (container.parent)
|
if (container.parent) {
|
||||||
|
if (!container.parent->has_child(container)) {
|
||||||
|
container.parent = {};
|
||||||
|
g_warning ("unexpected parent->child relation");
|
||||||
|
} else
|
||||||
container.parent->remove_child(container);
|
container.parent->remove_child(container);
|
||||||
|
}
|
||||||
container.is_nuked = true;
|
container.is_nuked = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user