Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 083a50a3 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change I66693ea2 into eclair

* changes:
  fix sync exponential backoff for expedited syncs
parents ee110be0 66693ea2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -811,7 +811,7 @@ class SyncManager implements OnAccountsUpdateListener {
    private long rescheduleWithDelay(SyncOperation syncOperation) {
    private long rescheduleWithDelay(SyncOperation syncOperation) {
        long newDelayInMs;
        long newDelayInMs;


        if (syncOperation.delay == 0) {
        if (syncOperation.delay <= 0) {
            // The initial delay is the jitterized INITIAL_SYNC_RETRY_TIME_IN_MS
            // The initial delay is the jitterized INITIAL_SYNC_RETRY_TIME_IN_MS
            newDelayInMs = jitterize(INITIAL_SYNC_RETRY_TIME_IN_MS,
            newDelayInMs = jitterize(INITIAL_SYNC_RETRY_TIME_IN_MS,
                    (long)(INITIAL_SYNC_RETRY_TIME_IN_MS * 1.1));
                    (long)(INITIAL_SYNC_RETRY_TIME_IN_MS * 1.1));