mirror of
https://github.com/M66B/FairEmail.git
synced 2026-02-03 13:35:54 +01:00
@@ -1268,9 +1268,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
db.folder().setFolderStates(account.id, null);
|
||||
db.account().setAccountState(account.id, "connecting");
|
||||
|
||||
ServiceAuthenticator authenticator;
|
||||
try {
|
||||
authenticator = iservice.connect(account);
|
||||
iservice.connect(account);
|
||||
} catch (Throwable ex) {
|
||||
// Immediately report auth errors
|
||||
if (ex instanceof AuthenticationFailedException) {
|
||||
@@ -1859,9 +1858,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
"Unrecoverable",
|
||||
new Exception(state.getUnrecoverable()));
|
||||
|
||||
if (!authenticator.isTokenValid(account.poll_interval))
|
||||
throw new StoreClosedException(iservice.getStore(), "Token invalidation");
|
||||
|
||||
// Sends store NOOP
|
||||
if (EmailService.SEPARATE_STORE_CONNECTION) {
|
||||
EntityLog.log(this, account.name + " checking store" +
|
||||
|
||||
Reference in New Issue
Block a user