Monitoring of non transient accounts

This commit is contained in:
M66B 2020-11-01 09:40:42 +01:00
parent 93c114d870
commit ebe94442d6
1 changed files with 2 additions and 1 deletions

View File

@ -226,7 +226,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
Log.d("### evaluating " + current);
if (current.accountState.shouldRun(current.enabled))
runService = true;
if ("connected".equals(current.accountState.state))
if (!isTransient(current.accountState) &&
("connected".equals(current.accountState.state) || current.accountState.backoff_until != null))
accounts++;
if (current.accountState.synchronize)
operations += current.accountState.operations;