Stop retrying when executing operations only

This commit is contained in:
M66B 2020-02-15 08:07:12 +01:00
parent 55f7f40b5a
commit 834f1daa37
1 changed files with 5 additions and 0 deletions

View File

@ -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)