1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 07:01:05 +00:00
This commit is contained in:
M66B 2022-07-20 15:06:59 +02:00
parent 63d2602a3f
commit 85bd4c6967

View file

@ -140,7 +140,7 @@ public class ServiceAuthenticator extends Authenticator {
Log.e(ex);
}
long slack = Math.max(keep_alive, MIN_EXPIRE_INTERVAL);
long slack = Math.min(keep_alive, MIN_EXPIRE_INTERVAL);
if (expiration != null && expiration - slack < new Date().getTime())
throw new IllegalStateException(Log.TOKEN_REFRESH_REQUIRED);
}