diff options
Diffstat (limited to 'src/core/slice.c')
-rw-r--r-- | src/core/slice.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/slice.c b/src/core/slice.c index aa7e7555e5..49541aacab 100644 --- a/src/core/slice.c +++ b/src/core/slice.c @@ -381,8 +381,10 @@ static int slice_freezer_action(Unit *s, FreezerAction action) { assert(s); assert(IN_SET(action, FREEZER_FREEZE, FREEZER_THAW)); - if (!slice_freezer_action_supported_by_children(s)) - return log_unit_warning(s, "Requested freezer operation is not supported by all children of the slice"); + if (!slice_freezer_action_supported_by_children(s)) { + log_unit_warning(s, "Requested freezer operation is not supported by all children of the slice"); + return 0; + } HASHMAP_FOREACH_KEY(v, member, s->dependencies[UNIT_BEFORE]) { if (UNIT_DEREF(member->slice) != s) |