mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +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) {
|
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();
|
thread.interrupt();
|
||||||
yield();
|
yield();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue