mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 10:17:18 +00:00
Added logging
This commit is contained in:
parent
d1dedf53a1
commit
57786022fc
1 changed files with 5 additions and 3 deletions
|
@ -1839,10 +1839,12 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
|
||||
if (backoff < CONNECT_BACKOFF_MAX)
|
||||
state.setBackoff(backoff * 2);
|
||||
else if (backoff == CONNECT_BACKOFF_MAX) {
|
||||
if (!Helper.isCharging(this))
|
||||
else if (backoff == CONNECT_BACKOFF_MAX)
|
||||
if (Helper.isCharging(this))
|
||||
EntityLog.log(this, "Device is charging");
|
||||
else
|
||||
state.setBackoff(CONNECT_BACKOFF_ALARM_START * 60);
|
||||
} else if (backoff < CONNECT_BACKOFF_ALARM_MAX * 60)
|
||||
else if (backoff < CONNECT_BACKOFF_ALARM_MAX * 60)
|
||||
state.setBackoff(backoff * 2);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue