Revert "Pre expire tokens"

This reverts commit 0a417725eb.
This commit is contained in:
M66B
2021-07-17 12:42:02 +02:00
parent 2e85b3bc0d
commit e49321af2c
3 changed files with 9 additions and 48 deletions

View File

@@ -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" +