From 9a6bebe2a0215c7698a124fa13bf06460cea3d97 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 31 Mar 2020 09:20:54 +0200 Subject: [PATCH] Consider folder closed when retrying operation failed --- app/src/main/java/eu/faircode/email/Core.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 7e791a0a31..ca5b78693d 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -504,6 +504,8 @@ 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()); }