Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Commit 4f9392e

Browse files
author
Peter Nied
committed
Prevent logout from getting stuck on only one Authenticator
1 parent 226cb66 commit 4f9392e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

onedrivesdk/src/main/java/com/onedrive/sdk/authentication/DisambiguationAuthenticator.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,9 @@ public synchronized void logout() throws ClientException {
333333
if (mMSAAuthenticator.getAccountInfo() != null) {
334334
mLogger.logDebug("Starting logout of MSA account");
335335
mMSAAuthenticator.logout();
336-
} else if (mADALAuthenticator.getAccountInfo() != null) {
336+
}
337+
338+
if (mADALAuthenticator.getAccountInfo() != null) {
337339
mLogger.logDebug("Starting logout of ADAL account");
338340
mADALAuthenticator.logout();
339341
}

0 commit comments

Comments
 (0)