Skip to content

Commit f7ca07b

Browse files
lapcatrentzsch
authored andcommitted
Fix for Sparkle crasher in scheduleNextUpdateCheck.
Signed-off-by: Jonathan 'Wolf' Rentzsch <[email protected]>
1 parent 7458437 commit f7ca07b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sparkle/SUUpdater.m

+2
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ - (void)scheduleNextUpdateCheck
170170

171171
- (void)checkForUpdatesInBackground
172172
{
173+
checkTimer = nil; // Timer doesn't repeat, so it's invalid, just needs to be set to nil.
174+
173175
[self checkForUpdatesWithDriver:[[[([self automaticallyDownloadsUpdates] ? [SUAutomaticUpdateDriver class] : [SUScheduledUpdateDriver class]) alloc] initWithUpdater:self] autorelease]];
174176
}
175177

0 commit comments

Comments
 (0)