From 85bd4c69677624f56e76698771206f1ad2ce78d9 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 20 Jul 2022 15:06:59 +0200 Subject: [PATCH] Oops --- app/src/main/java/eu/faircode/email/ServiceAuthenticator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceAuthenticator.java b/app/src/main/java/eu/faircode/email/ServiceAuthenticator.java index 5e6df99917..597cdea9e8 100644 --- a/app/src/main/java/eu/faircode/email/ServiceAuthenticator.java +++ b/app/src/main/java/eu/faircode/email/ServiceAuthenticator.java @@ -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); }