From 4c3d158d826b93201e97b146fbe9cf3795e680ea Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 11 Oct 2018 12:20:27 +0000 Subject: [PATCH] Fixed wakelock --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 2 -- 1 file changed, 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 1789fc0c..ce2ac6e2 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -860,7 +860,6 @@ public class ServiceSynchronize extends LifecycleService { @Override public void run() { try { - wl.acquire(); Log.i(Helper.TAG, folder.name + " start idle"); while (state.running) { Log.i(Helper.TAG, folder.name + " do idle"); @@ -878,7 +877,6 @@ public class ServiceSynchronize extends LifecycleService { yieldWakelock(); } finally { Log.i(Helper.TAG, folder.name + " end idle"); - wl.release(); } } }, "idler." + folder.id);