mirror of https://github.com/M66B/FairEmail.git
Stop retrying when on manual sync
This commit is contained in:
parent
73aa38dac4
commit
997fed9f54
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue