From 991215afb1e556faf3090cb084a5c6f0e17dfe12 Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Mon, 18 May 2020 17:03:54 +0200 Subject: [PATCH] Fix #98092 --- src/vs/platform/userDataSync/common/userDataAutoSyncService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/platform/userDataSync/common/userDataAutoSyncService.ts b/src/vs/platform/userDataSync/common/userDataAutoSyncService.ts index 2de18f8f970..82fb100bf95 100644 --- a/src/vs/platform/userDataSync/common/userDataAutoSyncService.ts +++ b/src/vs/platform/userDataSync/common/userDataAutoSyncService.ts @@ -143,7 +143,7 @@ export class UserDataAutoSyncService extends Disposable implements IUserDataAuto this.logService.info('Auto Sync: Triggered.'); return this.sync(false, true); }, this.successiveFailures - ? 1000 * 1 * Math.min(this.successiveFailures, 60) /* Delay by number of failures times number of seconds max till 1 minute */ + ? 1000 * 1 * Math.min(Math.pow(2, this.successiveFailures), 60) /* Delay exponentially until max 1 minute */ : 0); /* Do not delay if there are no failures */ } -- GitLab