Skip to content

Commit

Permalink
core/unit: use UNIT_IS_INACTIVE_OR_FAILED at one more place
Browse files Browse the repository at this point in the history
  • Loading branch information
YHNdnzj committed Feb 12, 2025
1 parent 7ee5b95 commit 468e872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ void unit_release_resources(Unit *u) {
return;

state = unit_active_state(u);
if (!IN_SET(state, UNIT_INACTIVE, UNIT_FAILED))
if (!UNIT_IS_INACTIVE_OR_FAILED(state))
return;

if (unit_will_restart(u))
Expand Down

0 comments on commit 468e872

Please sign in to comment.