Merge commit '0074e8f2e085cd84c40a6eb3dbf61dc29ed2cc8c' * commit '0074e8f2e085cd84c40a6eb3dbf61dc29ed2cc8c': fix sync exponential backoff for expedited syncs
This commit is contained in:
@@ -811,7 +811,7 @@ class SyncManager implements OnAccountsUpdateListener {
|
||||
private long rescheduleWithDelay(SyncOperation syncOperation) {
|
||||
long newDelayInMs;
|
||||
|
||||
if (syncOperation.delay == 0) {
|
||||
if (syncOperation.delay <= 0) {
|
||||
// The initial delay is the jitterized INITIAL_SYNC_RETRY_TIME_IN_MS
|
||||
newDelayInMs = jitterize(INITIAL_SYNC_RETRY_TIME_IN_MS,
|
||||
(long)(INITIAL_SYNC_RETRY_TIME_IN_MS * 1.1));
|
||||
|
||||
Reference in New Issue
Block a user