From c9f2d7f5e614b5ac2e8c008d86351aa1d7288246 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 8 May 2020 20:10:38 +0200 Subject: [PATCH] Fixed long reconnect backoff --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 7b3610435e..e82a801342 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -1554,7 +1554,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences if (state.isRunning()) { int backoff = state.getBackoff(); - long cbackoff = RECONNECT_BACKOFF - (new Date().getTime() - lastLost); + long cbackoff = (RECONNECT_BACKOFF - (new Date().getTime() - lastLost)) / 1000L; if (cbackoff > backoff) { try { EntityLog.log(this, account.name + " reconnect backoff=" + cbackoff);