Fix for Sparkle crasher in scheduleNextUpdateCheck. Originally by lapcat, http://github.com/rentzsch/clicktoflash/commit/f7ca07b3e6e6e13de8133d8e237f284f2ccdc066

This commit is contained in:
Simone Manganelli committed 2009-08-23 14:16:02 -07:00
1 parent 119bac527f
commit 9b5b541c82
1 file changed
+2
+2
View File
@@ -174,6 +174,8 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv
- (void)checkForUpdatesInBackground
{
checkTimer = nil; // Timer doesn't repeat, so it's invalid, just needs to be set to nil.
[self checkForUpdatesWithDriver:[[[([self automaticallyDownloadsUpdates] ? [SUAutomaticUpdateDriver class] : [SUScheduledUpdateDriver class]) alloc] initWithUpdater:self] autorelease]];
}