From 0ca1050b2e29a222c6bfeeddd4f8e84bae9f861f Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 14 Aug 2018 12:27:07 +0000 Subject: [PATCH] To do --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index b8f2faff..6fa3866a 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -429,6 +429,7 @@ public class ServiceSynchronize extends LifecycleService { // MessagingException // - message: connection failure // - event: Too many simultaneous connections. (Failure) + // TODO: retry? Log.e(Helper.TAG, folder.name + " " + ex + "\n" + Log.getStackTraceString(ex)); reportError(account.name, folder.name, ex); @@ -1464,6 +1465,8 @@ public class ServiceSynchronize extends LifecycleService { public void onLost(Network network) { Log.i(Helper.TAG, "Lost " + network); + // TODO: run in thread + synchronized (state) { state.running = false; state.notifyAll();