From 095a885d309441012f357a39ceb22c080e5013e7 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 7 Oct 2018 15:44:05 +0000 Subject: [PATCH] Fixed checking folder connection --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 5050baf1e2..661a7101e3 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -965,6 +965,10 @@ public class ServiceSynchronize extends LifecycleService { if (!istore.isConnected()) throw new StoreClosedException(istore); + + for (EntityFolder folder : folders.keySet()) + if (!folders.get(folder).isOpen()) + throw new FolderClosedException(folders.get(folder)); } Log.i(Helper.TAG, account.name + " done running=" + state.running); } finally {