Loading k9mail-library/src/main/java/foundation/e/mail/mail/store/imap/ImapConnection.java +2 −1 Original line number Diff line number Diff line Loading @@ -397,8 +397,9 @@ class ImapConnection { return attemptXOAuth2(); } catch (NegativeImapResponseException e) { //TODO: Check response code so we don't needlessly invalidate the token. if(e.getMessage().contains("Too many simultaneous connections")) throw new MessagingException("Too many simultaneous connections"); oauthTokenProvider.invalidateToken(settings.getUsername()); if (!retryXoauth2WithNewToken) { throw handlePermanentXoauth2Failure(e); } else { Loading Loading
k9mail-library/src/main/java/foundation/e/mail/mail/store/imap/ImapConnection.java +2 −1 Original line number Diff line number Diff line Loading @@ -397,8 +397,9 @@ class ImapConnection { return attemptXOAuth2(); } catch (NegativeImapResponseException e) { //TODO: Check response code so we don't needlessly invalidate the token. if(e.getMessage().contains("Too many simultaneous connections")) throw new MessagingException("Too many simultaneous connections"); oauthTokenProvider.invalidateToken(settings.getUsername()); if (!retryXoauth2WithNewToken) { throw handlePermanentXoauth2Failure(e); } else { Loading