mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Added back-off breadcrumb
This commit is contained in:
@@ -2591,6 +2591,13 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
state.setBackoff(b);
|
||||
}
|
||||
|
||||
Map<String, String> crumb = new HashMap<>();
|
||||
crumb.put("account", account.name);
|
||||
crumb.put("backoff", Integer.toString(backoff));
|
||||
crumb.put("recently", Integer.toString(recently));
|
||||
crumb.put("logarithmic", Boolean.toString(logarithmic_backoff));
|
||||
Log.breadcrumb("Backing off", crumb);
|
||||
|
||||
if (backoff <= CONNECT_BACKOFF_MAX) {
|
||||
// Short back-off period, keep device awake
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user