Skip to content

Commit

Permalink
Restores Authenticated check on Logout
Browse files Browse the repository at this point in the history
  • Loading branch information
jleandroperez committed Aug 14, 2021
1 parent 050145b commit 82109fb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Simperium/Simperium.m
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,12 @@ - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sende
#pragma mark ====================================================================================

- (void)signOutAndRemoveLocalData:(BOOL)remove completion:(SimperiumSignoutCompletion)completion {


// Don't proceed, if the user isn't logged in
if (!self.user.authenticated) {
return;
}

if (self.logoutInProgress) {
SPLogError(@"Error: Simperium is already logging out");
return;
Expand Down

0 comments on commit 82109fb

Please # to comment.