From 54408ca1a953896d948fb45cee3740811724afcd Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 2 Jul 2016 23:23:57 -0400 Subject: [PATCH] Fix bug where updater ignored 3rd stage installation failures Only prevalent if the updater lives in a different process than the app being updated --- Sparkle/SUInstallerDriver.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sparkle/SUInstallerDriver.m b/Sparkle/SUInstallerDriver.m index bd4fb2f1..483fd851 100644 --- a/Sparkle/SUInstallerDriver.m +++ b/Sparkle/SUInstallerDriver.m @@ -353,9 +353,6 @@ hasTargetTerminated = (BOOL)*((const uint8_t *)data.bytes + 1); } - [self.remotePort invalidate]; - self.remotePort = nil; - [self.delegate installerWillFinishInstallationAndRelaunch:self.willRelaunch]; if (!hasTargetTerminated) { @@ -365,6 +362,9 @@ } else if (identifier == SUInstallationFinishedStage3) { self.currentStage = identifier; + [self.remotePort invalidate]; + self.remotePort = nil; + [self.localPort invalidate]; self.localPort = nil;