mirror of https://github.com/M66B/FairEmail.git
Consider connection and socket exception as unrecoverable
This commit is contained in:
parent
13e818b5e2
commit
765f711b27
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue