From 07dd6f0df6247f29a03bdd88a669dcf7ae2755bc Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 7 Sep 2018 13:54:32 +0000 Subject: [PATCH] Decrease start backk-off time to 8 seconds --- .idea/caches/build_file_checksums.ser | Bin 535 -> 535 bytes .../eu/faircode/email/ServiceSynchronize.java | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index 96c2556dddc405379c7dacc60849f7eca6e02def..70b25d773a9f4ab63574278cd5809bf755a52792 100644 GIT binary patch delta 14 WcmbQvGM#0@OlJQR^ES?@W&{8#TLs|& delta 14 WcmbQvGM#0@OlE;cjT`4wGXel8tp%R| diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 428a5307..720f723e 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -123,7 +123,7 @@ public class ServiceSynchronize extends LifecycleService { private static final int NOTIFICATION_SYNCHRONIZE = 1; private static final int NOTIFICATION_UNSEEN = 2; - private static final int CONNECT_BACKOFF_START = 32; // seconds + private static final int CONNECT_BACKOFF_START = 8; // seconds private static final int CONNECT_BACKOFF_MAX = 1024; // seconds (1024 sec ~ 17 min) private static final long STORE_NOOP_INTERVAL = 9 * 60 * 1000L; // ms private static final int ATTACHMENT_AUTO_DOWNLOAD_SIZE = 32 * 1024; // bytes