Authentication exception with I/O error is recoverable

This commit is contained in:
M66B
2020-07-02 19:01:22 +02:00
parent 0112cd2b99
commit 0a53707ffa

View File

@@ -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");