Stop retrying when on manual sync

This commit is contained in:
M66B 2020-02-22 14:57:47 +01:00
parent 73aa38dac4
commit 997fed9f54
1 changed files with 4 additions and 0 deletions

View File

@ -1491,6 +1491,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
Log.w(account.name + " backoff " + ex.toString());
}
} else {
// Stop retrying when on manual sync
if (account.ondemand)
break;
// Stop retrying when executing operations only
boolean enabled = prefs.getBoolean("enabled", true);
if (!enabled)