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:
parent
25b974b24f
commit
c274c89a71
1 changed files with 7 additions and 1 deletions
|
@ -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 a new issue