From 640eff97d0b1c6198c5d21d6ce0b1f3979163802 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 6 Sep 2021 22:38:24 +0200 Subject: [PATCH] Revert "Logaritmic back-off on auth failures" This reverts commit bea7334df995a613db4ae91103396b2e5302c94e. --- .../main/java/eu/faircode/email/ServiceSynchronize.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index fd8fc680c4..0d4663f400 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -1401,12 +1401,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences } else { Log.e(ex); try { - int backoff = state.getBackoff(); - if (backoff < 2 * CONNECT_BACKOFF_ALARM_MAX * 60) - backoff = 2 * CONNECT_BACKOFF_ALARM_MAX * 60; - else if (backoff < 8 * CONNECT_BACKOFF_ALARM_MAX * 60) - backoff *= 2; - state.setBackoff(backoff); + state.setBackoff(2 * CONNECT_BACKOFF_ALARM_MAX * 60); NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); nm.notify("receive:" + account.id, NotificationHelper.NOTIFICATION_TAGGED,