Fix bug where updater ignored 3rd stage installation failures

Only prevalent if the updater lives in a different process than the app being updated
This commit is contained in:
Zorg committed 2016-07-02 23:23:57 -04:00
1 parent 4240138818
commit 54408ca1a9
1 file changed
+3 -3
+3 -3
View File
@@ -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;