diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index 973be249..f5ca16be 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -67,6 +67,8 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification _userUpdaterDriver = userUpdaterDriver; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateDriverDidFinish:) name:SUUpdateDriverFinishedNotification object:nil]; + [self startUpdateCycle]; return self; @@ -503,6 +505,8 @@ static void SUCheckForUpdatesInBgReachabilityCheck(__weak SUUpdater *updater, SU - (void)dealloc { + // Remove updater did finish notification + [[NSNotificationCenter defaultCenter] removeObserver:self]; [self.userUpdaterDriver invalidateUpdateCheckTimer]; }