fix: fail stopped service update restart errors

This commit is contained in:
Shakker
2026-06-11 00:39:02 +01:00
committed by Shakker
parent 2e9c93cb3a
commit df52f8ff64
2 changed files with 38 additions and 1 deletions
+4 -1
View File
@@ -2315,7 +2315,10 @@ async function maybeRestartService(params: {
),
);
}
if (isPackageManagerUpdateMode(params.result.mode)) {
if (
isPackageManagerUpdateMode(params.result.mode) ||
params.requireRunningServiceAfterRestart
) {
return false;
}
}