diff --git a/Sparkle/SUAutomaticUpdateDriver.m b/Sparkle/SUAutomaticUpdateDriver.m index 63f947d7..f7c40f53 100644 --- a/Sparkle/SUAutomaticUpdateDriver.m +++ b/Sparkle/SUAutomaticUpdateDriver.m @@ -117,8 +117,6 @@ static const NSTimeInterval SUAutomaticUpdatePromptImpatienceTimer = 60 * 60 * 2 [self stopUpdatingOnTermination]; [self invalidateShowUpdateAlertTimer]; - [self.updater.userUpdaterDriver dismissUpdateInstallation]; - [super abortUpdate]; } diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index de389410..fe53cce9 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -575,6 +575,8 @@ - (void)abortUpdate { + [self.updater.userUpdaterDriver dismissUpdateInstallation]; + [self cleanUpDownload]; [[NSNotificationCenter defaultCenter] removeObserver:self]; self.updateItem = nil; diff --git a/Sparkle/SUUIBasedUpdateDriver.m b/Sparkle/SUUIBasedUpdateDriver.m index b550a714..91ea23e4 100644 --- a/Sparkle/SUUIBasedUpdateDriver.m +++ b/Sparkle/SUUIBasedUpdateDriver.m @@ -159,13 +159,6 @@ [super abortUpdateWithError:error]; } -- (void)abortUpdate -{ - [self.updater.userUpdaterDriver dismissUpdateInstallation]; - - [super abortUpdate]; -} - - (void)showNoticeModally:(BOOL)modally noticeHandler:(void (^)(void))noticeHandler { if (modally && [[self.updater delegate] respondsToSelector:@selector(updaterWillShowModalAlert:)]) {