core/unit: try to submit stop_when_unneeded queue on removing dependencies

Fixes #23410.
This commit is contained in:
Yu Watanabe
2022-06-28 06:11:53 +09:00
parent 033fe6506a
commit 156ba52b43

View File

@@ -5165,6 +5165,9 @@ void unit_remove_dependencies(Unit *u, UnitDependencyMask mask) {
unit_add_to_gc_queue(other);
/* The unit 'other' may not be wanted by the unit 'u'. */
unit_submit_to_stop_when_unneeded_queue(other);
done = false;
break;
}