From 02e58770e9dc38d82f7dd1a474202d14a347d619 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 13 Jun 2019 14:31:46 +0200 Subject: [PATCH] Connection failure is unrecoverable --- app/src/main/java/eu/faircode/email/Core.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 060b918694..46f20dd8f8 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -2246,7 +2246,8 @@ class Core { void error(Throwable ex) { if (ex instanceof MessagingException && - (ex.getCause() instanceof SocketException || + ("connection failure".equals(ex.getMessage()) || + ex.getCause() instanceof SocketException || ex.getCause() instanceof ConnectionException)) recoverable = false;