From 0a53707ffa31e02d4258db7ffd7a625cd207d1de Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 2 Jul 2020 19:01:22 +0200 Subject: [PATCH] Authentication exception with I/O error is recoverable --- app/src/main/java/eu/faircode/email/ServiceSend.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSend.java b/app/src/main/java/eu/faircode/email/ServiceSend.java index 0099996e37..e349501aa3 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSend.java +++ b/app/src/main/java/eu/faircode/email/ServiceSend.java @@ -364,7 +364,8 @@ public class ServiceSend extends ServiceBase { ex instanceof OutOfMemoryError || ex instanceof MessageRemovedException || ex instanceof FileNotFoundException || - ex instanceof AuthenticationFailedException || + (ex instanceof AuthenticationFailedException && + !ConnectionHelper.isIoError(ex)) || ex instanceof SendFailedException || ex instanceof IllegalArgumentException) { Log.w("Unrecoverable");