diff options
author | Fred Quintana <fredq@google.com> | 2009-10-09 16:32:02 -0700 |
---|---|---|
committer | Fred Quintana <fredq@google.com> | 2009-10-09 16:32:02 -0700 |
commit | 66693ea208a233993b541784d99f3a8333b7ac69 (patch) | |
tree | 0e775b05141fe694ebda6acf59242e62d34c0d31 /core | |
parent | f038004f4a5e4fab18df9c87573ba1e82790c30f (diff) | |
download | frameworks_base-66693ea208a233993b541784d99f3a8333b7ac69.zip frameworks_base-66693ea208a233993b541784d99f3a8333b7ac69.tar.gz frameworks_base-66693ea208a233993b541784d99f3a8333b7ac69.tar.bz2 |
fix sync exponential backoff for expedited syncs
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/content/SyncManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |