This commit is contained in:
Sandeep Somavarapu 2020-05-18 17:03:54 +02:00
parent 4af9b3e29a
commit 991215afb1

View file

@ -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 */
}