diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index ae6951dab5..22e4f01c0b 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -1437,6 +1437,9 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences Log.i(folder.name + " poll count=" + folder.poll_count); } } + + if (!first) + errors = 0; } catch (Throwable ex) { if (tune) { account.keep_alive_failed++; @@ -1542,7 +1545,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences am.cancel(pi); } - errors = 0; first = false; }