Reset fast error count on second keep alive

pull/185/head
M66B 5 years ago
parent be5a5cddce
commit c13cb867f3

@ -1437,6 +1437,9 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
Log.i(folder.name + " poll count=" + folder.poll_count); Log.i(folder.name + " poll count=" + folder.poll_count);
} }
} }
if (!first)
errors = 0;
} catch (Throwable ex) { } catch (Throwable ex) {
if (tune) { if (tune) {
account.keep_alive_failed++; account.keep_alive_failed++;
@ -1542,7 +1545,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
am.cancel(pi); am.cancel(pi);
} }
errors = 0;
first = false; first = false;
} }

Loading…
Cancel
Save