1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-28 18:59:01 +00:00

Some IllegalStateExceptions are unrecoverable

This commit is contained in:
M66B 2019-05-10 15:08:29 +02:00
parent 25b974b24f
commit c274c89a71

View file

@ -2134,7 +2134,13 @@ class Core {
}
void error(Throwable ex) {
recoverable = (recoverable && !(ex instanceof FolderClosedException));
if (ex instanceof FolderClosedException)
recoverable = false;
if (ex instanceof IllegalStateException &&
"This operation is not allowed on a closed folder".equals(ex.getMessage()))
recoverable = false;
thread.interrupt();
yield();
}