Reset fast error count on second keep alive

This commit is contained in:
M66B
2020-09-25 11:41:10 +02:00
parent be5a5cddce
commit c13cb867f3

View File

@@ -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;
}