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).
This commit is contained in:
Zorg authored and GitHub committed 2022-06-04 14:03:03 -07:00
1 parent 58fa11ce04
commit fabd3e6c7b
1 file changed
+1 -1
+1 -1
View File
@@ -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];
}