From ac41616191665e58548191a3c35e128d96856af5 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 25 Feb 2021 09:48:50 +0100 Subject: [PATCH] Simplification --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 4 +++- 1 file changed, 3 insertions(+), 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 751c0dc351..3ed2dcdd25 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -1331,11 +1331,13 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences public void run() { try { Log.i(folder.name + " start idle"); - while (ifolder.isOpen() && state.isRunning() && state.isRecoverable()) { + while (state.isRunning() && state.isRecoverable()) { Log.i(folder.name + " do idle"); ifolder.idle(false); state.activity(); } + if (BuildConfig.DEBUG) + EntityLog.log(ServiceSynchronize.this, folder.name + " end IDLE"); } catch (Throwable ex) { Log.e(folder.name, ex); EntityLog.log(