From 683edaf15cd81b14aab7151fd5779eb3b233deac Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 20 Feb 2020 11:48:35 +0100 Subject: [PATCH] Consider account exceptions as I/O --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index ebf604b968..e51c87ecff 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -19,6 +19,7 @@ package eu.faircode.email; Copyright 2018-2020 by Marcel Bokhorst (M66B) */ +import android.accounts.AccountsException; import android.app.AlarmManager; import android.app.NotificationManager; import android.app.PendingIntent; @@ -859,6 +860,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences if (max || c instanceof IOException || c instanceof ConnectionException || + c instanceof AccountsException || "failed to connect".equals(ex.getMessage())) { ioError = true; break;