core: fix the return value in order to make sure we don't dipatch method return too early

Actually, it is the same kind of problem as in d910f4c . Basically, we
need to return 1 on success code path in slice_freezer_action().
Otherwise we dispatch DBus return message too soon.

Fixes: #16050
This commit is contained in:
Michal Sekletár 2020-06-05 15:23:12 +02:00
parent a0d79df8e5
commit 2884836e3c
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ static int slice_freezer_action(Unit *s, FreezerAction action) {
if (r < 0)
return r;
return 0;
return 1;
}
static int slice_freeze(Unit *s) {