From f7ca07b3e6e6e13de8133d8e237f284f2ccdc066 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 4 May 2009 00:21:29 +0800 Subject: [PATCH] Fix for Sparkle crasher in scheduleNextUpdateCheck. Signed-off-by: Jonathan 'Wolf' Rentzsch --- Sparkle/SUUpdater.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index 8eb95a5f..3aa21754 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -170,6 +170,8 @@ - (void)scheduleNextUpdateCheck - (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]]; }