Consider connection and socket exception as unrecoverable

This commit is contained in:
M66B 2019-05-15 21:21:05 +02:00
parent 13e818b5e2
commit 765f711b27
1 changed files with 5 additions and 0 deletions

View File

@ -2183,6 +2183,11 @@ class Core {
}
void error(Throwable ex) {
if (ex instanceof MessagingException &&
(ex.getCause() instanceof SocketException ||
ex.getCause() instanceof ConnectionException))
recoverable = false;
if (ex instanceof FolderClosedException)
recoverable = false;