mirror of https://github.com/M66B/FairEmail.git
Some IllegalStateExceptions are unrecoverable
This commit is contained in:
parent
25b974b24f
commit
c274c89a71
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue