From 2f743bd4244da877380d1824b235859583bed559 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 10 May 2019 15:22:31 +0200 Subject: [PATCH] Not connected is unrecoverable --- app/src/main/java/eu/faircode/email/Core.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index b787acb23b..3a95fe4b3f 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -2139,8 +2139,9 @@ class Core { if (ex instanceof FolderClosedException) recoverable = false; - if (ex instanceof IllegalStateException && - "This operation is not allowed on a closed folder".equals(ex.getMessage())) + if (ex instanceof IllegalStateException && ( + "Not connected".equals(ex.getMessage()) || + "This operation is not allowed on a closed folder".equals(ex.getMessage()))) recoverable = false; thread.interrupt();