Should exit right away after restarting for updates

This commit is contained in:
Caelan Sayler
2024-01-31 16:19:34 +00:00
parent 78f47c4cda
commit acbc9c6213

View File

@@ -214,6 +214,7 @@ namespace Velopack
if (!restarted && _autoApply) {
log.Info("Auto apply is true, so restarting to apply update...");
UpdateExe.Apply(locator, latestLocal, true, true, args, log);
Exit(0);
} else {
log.Info("Pre-condition failed, we will not restart to apply updates. (restarted: " + restarted + ", autoApply: " + _autoApply + ")");
}