From efbad2ac4fb3ee89b3f850c4d2f1d3d103c76f4f Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 28 Dec 2018 18:31:17 +0000 Subject: [PATCH] Refactoring --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 74a946200d..e1220d543e 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -2821,6 +2821,8 @@ public class ServiceSynchronize extends LifecycleService { EntityLog.log(ServiceSynchronize.this, "Queue reload " + " doStop=" + doStop + " doStart=" + doStart + " queued=" + queued + " " + reason); + started = doStart; + queued++; queue.submit(new Runnable() { PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); @@ -2880,8 +2882,6 @@ public class ServiceSynchronize extends LifecycleService { Thread.sleep(YIELD_DURATION); } catch (InterruptedException ignored) { } - - started = doStart; } }