Suppress AuthenticationFailedException caused by IOException

This commit is contained in:
M66B 2019-12-28 18:35:44 +01:00
parent c021e5da28
commit e2ef0901e3
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ import androidx.preference.PreferenceManager;
import com.sun.mail.imap.IMAPFolder;
import java.net.SocketException;
import java.io.IOException;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.Arrays;
@ -792,7 +792,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
} catch (Throwable ex) {
// Immediately report auth errors
if (ex instanceof AuthenticationFailedException &&
!(ex.getCause() instanceof SocketException) &&
!(ex.getCause() instanceof IOException) &&
!(ex.getMessage() != null &&
ex.getMessage().contains("Too many simultaneous connections"))) {
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);