1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-14 16:10:39 +00:00

Fixed long reconnect backoff

This commit is contained in:
M66B 2020-05-08 20:10:38 +02:00
parent d839641fcd
commit c9f2d7f5e6

View file

@ -1554,7 +1554,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
if (state.isRunning()) {
int backoff = state.getBackoff();
long cbackoff = RECONNECT_BACKOFF - (new Date().getTime() - lastLost);
long cbackoff = (RECONNECT_BACKOFF - (new Date().getTime() - lastLost)) / 1000L;
if (cbackoff > backoff) {
try {
EntityLog.log(this, account.name + " reconnect backoff=" + cbackoff);