Skip to content

Commit

Permalink
Fix #98092
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed May 18, 2020
1 parent 4af9b3e commit 991215a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

}
Expand Down

0 comments on commit 991215a

Please sign in to comment.