Fix bug where updated app can think a new update has already been downloaded

This is fixed by invalidating the local port connection from Autoupdate right before launching the new update
This commit is contained in:
Zorg committed 2016-04-19 20:55:36 -04:00
1 parent 8a8cef7dce
commit 0b640d5d20
1 file changed
+6
+6
View File
@@ -552,6 +552,12 @@ static const NSTimeInterval SUDisplayProgressTimeDelay = 0.7;
[installerProgressRunningApplication terminate];
shouldLaunchInstallerProgress = NO;
// Invalidate the local port before re-launching the updated app
// If we don't do this, the updated app could think the installation can be resumable,
// if it checks for updates immediately on launch
[self.localPort invalidate];
self.localPort = nil;
NSString *installationPath = [SUInstaller installationPathForHost:self.host];
if (self.shouldRelaunch) {