mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-30 05:28:50 +00:00
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:
1 parent
8a8cef7dce
commit
0b640d5d20
1 file changed
+6
Vendored
+6
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user