diff --git a/Sparkle/SPUUpdater.m b/Sparkle/SPUUpdater.m index 48d8d8e8..fc119354 100644 --- a/Sparkle/SPUUpdater.m +++ b/Sparkle/SPUUpdater.m @@ -549,7 +549,11 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification - (void)updaterTimerDidFire { - [self _checkForUpdatesInBackground]; + // User can perform a checkForUpdates check around the same time the timer is ready to fire + if (!_sessionInProgress) + { + [self _checkForUpdatesInBackground]; + } } - (void)_checkForUpdatesInBackground SPU_OBJC_DIRECT @@ -695,8 +699,8 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification - (void)checkForUpdatesWithDriver:(id )d updateCheck:(SPUUpdateCheck)updateCheck installerInProgress:(BOOL)installerInProgress SPU_OBJC_DIRECT { - assert(_driver == nil); if (_driver != nil) { + SULog(SULogLevelError, @"Error: checkForUpdatesWithDriver:updateCheck:installerInProgress: called when _driver != nil"); return; }