mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-05 12:24:26 +01:00
Fixed long reconnect backoff
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user