mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
Merge pull request #1846 from sparkle-project/enforce-session-in-progress
Enforce the updater session is in progress
This commit is contained in:
1 file changed
+3
Vendored
+3
@@ -423,6 +423,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification
|
||||
|
||||
if (self.sessionInProgress) {
|
||||
SULog(SULogLevelError, @"Error: -checkForUpdatesInBackground called but .sessionInProgress == YES");
|
||||
return;
|
||||
}
|
||||
|
||||
self.sessionInProgress = YES;
|
||||
@@ -488,6 +489,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification
|
||||
|
||||
if (self.sessionInProgress) {
|
||||
SULog(SULogLevelError, @"Error: -checkForUpdates called but .sessionInProgress == YES");
|
||||
return;
|
||||
}
|
||||
|
||||
if (self.driver != nil) {
|
||||
@@ -529,6 +531,7 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification
|
||||
|
||||
if (self.sessionInProgress) {
|
||||
SULog(SULogLevelError, @"Error: -checkForUpdateInformation called but .sessionInProgress == YES");
|
||||
return;
|
||||
}
|
||||
|
||||
self.sessionInProgress = YES;
|
||||
|
||||
Reference in new issue
Block a user