This commit is contained in:
M66B 2022-07-20 15:06:59 +02:00
parent 63d2602a3f
commit 85bd4c6967
1 changed files with 1 additions and 1 deletions

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);
}