Merge pull request #1846 from sparkle-project/enforce-session-in-progress

Enforce the updater session is in progress
This commit is contained in:
Mayur Pawashe authored and GitHub committed 2021-05-02 09:03:04 -07:00
commit 85ac073e6d
1 file changed
+3
+3
View File
@@ -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;