Revert "Handle store closed exception"

This reverts commit 8a9be94fc6.
This commit is contained in:
M66B 2020-09-20 16:24:40 +02:00
parent 8a9be94fc6
commit bf11cc0d4a
1 changed files with 1 additions and 10 deletions

View File

@ -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) {