From fabd3e6c7bad3a0cb4dddadcb27fd5775eb4a1cf Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 4 Jun 2022 14:03:03 -0700 Subject: [PATCH] Schedule next update check if we're firing immediately (#2133) Even if the updater is set to not automatically check for updates. This fixes a bug where an update cycle may not complete if the automatic update driver first started, and the update should have been resumed but automatic update checks were disabled by the developer. The developer would have had to disable automatic update checks, check updates in the background themselves, have updates set to download automatically/silently, and be in a situation where the update would be deferred to non-silent update (for example, user requiring authorization to install, critical update being presented, info-only update being presented). --- Sparkle/SPUUpdater.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sparkle/SPUUpdater.m b/Sparkle/SPUUpdater.m index 58015ca2..46fd0373 100644 --- a/Sparkle/SPUUpdater.m +++ b/Sparkle/SPUUpdater.m @@ -449,7 +449,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification { [self.updaterTimer invalidate]; - if (![self automaticallyChecksForUpdates]) { + if (!firingImmediately && ![self automaticallyChecksForUpdates]) { if ([self.delegate respondsToSelector:@selector(updaterWillNotScheduleUpdateCheck:)]) { [self.delegate updaterWillNotScheduleUpdateCheck:self]; }