From 66693ea208a233993b541784d99f3a8333b7ac69 Mon Sep 17 00:00:00 2001 From: Fred Quintana Date: Fri, 9 Oct 2009 16:32:02 -0700 Subject: fix sync exponential backoff for expedited syncs --- core/java/android/content/SyncManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/content/SyncManager.java b/core/java/android/content/SyncManager.java index 3877f16..9757ef6 100644 --- a/core/java/android/content/SyncManager.java +++ b/core/java/android/content/SyncManager.java @@ -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)); -- cgit v1.1