Some IllegalStateExceptions are unrecoverable

This commit is contained in:
M66B 2019-05-10 15:08:29 +02:00
parent 25b974b24f
commit c274c89a71
1 changed files with 7 additions and 1 deletions

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();
}