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:
parent
d839641fcd
commit
c9f2d7f5e6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue