From 8c27d9b3487a816bc1d187cb082d1e8c25241abf Mon Sep 17 00:00:00 2001 From: Caelan Sayler Date: Wed, 31 Jan 2024 16:49:28 +0000 Subject: [PATCH] Should exit right away after restarting for updates --- src/Velopack/VelopackApp.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Velopack/VelopackApp.cs b/src/Velopack/VelopackApp.cs index 6e3efcd5..d55442e2 100644 --- a/src/Velopack/VelopackApp.cs +++ b/src/Velopack/VelopackApp.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using System.Linq; using System.Runtime.Versioning; @@ -214,6 +214,7 @@ namespace Velopack if (!restarted && _autoApply) { log.Info("Auto apply is true, so restarting to apply update..."); UpdateExe.Apply(locator, true, true, args, log); + Exit(0); } else { log.Info("Pre-condition failed, we will not restart to apply updates. (restarted: " + restarted + ", autoApply: " + _autoApply + ")"); }