Stop retrying when executing operations only

pull/174/head
M66B 5 years ago
parent 55f7f40b5a
commit 834f1daa37

@ -1470,6 +1470,11 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
Log.w(account.name + " backoff " + ex.toString());
}
} else {
// Stop retrying when executing operations only
boolean enabled = prefs.getBoolean("enabled", true);
if (!enabled)
break;
// Stop retrying when polling
int pollInterval = prefs.getInt("poll_interval", 0);
if (pollInterval > 0 && !account.poll_exempted)

Loading…
Cancel
Save