From bf11cc0d4a6c95bbd09bbc6ee9d085af652446e5 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 20 Sep 2020 16:24:40 +0200 Subject: [PATCH] Revert "Handle store closed exception" This reverts commit 8a9be94fc6939fc7a35a1c9bddb301dd02b631f6. --- .../java/eu/faircode/email/ServiceSynchronize.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 5ad53fe3a6..73690d3eaf 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -1325,16 +1325,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences db.folder().setFolderState(folder.id, "connecting"); - // Handle store closed exception - try { - ifolder = iservice.getStore().getFolder(folder.name); - } catch (IllegalStateException ex) { - if ("Not connected".equals(ex.getMessage())) - return; - else - throw ex; - } - + ifolder = iservice.getStore().getFolder(folder.name); try { ifolder.open(Folder.READ_WRITE); } catch (ReadOnlyFolderException ex) {