core: fix unfortunate typo in unit_is_unneeded()
Follow-up for a3c1168ac2
.
This commit is contained in:
parent
cf99f8eacf
commit
93d4cb09d5
|
@ -2000,7 +2000,7 @@ bool unit_is_unneeded(Unit *u) {
|
|||
* restart, then don't clean this one up. */
|
||||
|
||||
HASHMAP_FOREACH_KEY(v, other, u->dependencies[deps[j]], i) {
|
||||
if (u->job)
|
||||
if (other->job)
|
||||
return false;
|
||||
|
||||
if (!UNIT_IS_INACTIVE_OR_FAILED(unit_active_state(other)))
|
||||
|
|
Loading…
Reference in New Issue