Merge "Don't back-off ALREADY_IN_PROGRESS syncs" into lmp-dev

This commit is contained in:
Georgi Nikolov
2014-08-26 18:13:12 +00:00
committed by Android (Google) Code Review

View File

@@ -2757,9 +2757,7 @@ public class SyncManager {
} else {
Log.d(TAG, "failed sync operation " + syncOperation + ", " + syncResult);
// the operation failed so increase the backoff time
if (!syncResult.syncAlreadyInProgress) {
increaseBackoffSetting(syncOperation);
}
increaseBackoffSetting(syncOperation);
// reschedule the sync if so indicated by the syncResult
maybeRescheduleSync(syncResult, syncOperation);
historyMessage = ContentResolver.syncErrorToString(