From 516c48206c3db6de3407aafcb20745ec80e45759 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 21 Oct 2020 08:33:28 +0200 Subject: [PATCH] Faster keep-alive tuning --- 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 4344d2899e..b651ce29fe 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -1461,7 +1461,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences account.keep_alive_succeeded = 0; if (account.keep_alive_failed >= 3) { account.keep_alive_failed = 0; - account.poll_interval--; + account.poll_interval = account.poll_interval - 2; db.account().setAccountKeepAliveInterval(account.id, account.poll_interval); } db.account().setAccountKeepAliveValues(account.id,