diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index ef93e3e4b7..985efc0729 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -164,10 +164,8 @@ class Core { " group=" + group + " retry=" + retry); - if (ifolder != null && !ifolder.isOpen()) { - state.error(new FolderClosedException(ifolder)); + if (ifolder != null && !ifolder.isOpen()) break; - } // Fetch most recent copy of message EntityMessage message = null; @@ -510,8 +508,6 @@ class Core { if (ops.size() == 0) state.batchCompleted(folder.id, priority, sequence); - else - state.error(new FolderClosedException(ifolder)); } finally { Log.i(folder.name + " end process state=" + state + " pending=" + ops.size()); }