summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorFred Quintana <fredq@google.com>2009-10-09 16:32:02 -0700
committerFred Quintana <fredq@google.com>2009-10-09 16:32:02 -0700
commit66693ea208a233993b541784d99f3a8333b7ac69 (patch)
tree0e775b05141fe694ebda6acf59242e62d34c0d31 /core
parentf038004f4a5e4fab18df9c87573ba1e82790c30f (diff)
downloadframeworks_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.java2
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));