Skip to content

Commit

Permalink
fix auto sync
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Sep 11, 2019
1 parent 3d9d3fe commit d34ea68
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ class AutoSyncUserData extends Disposable implements IWorkbenchContribution {
@IUserDataSyncService private readonly userDataSyncService: IUserDataSyncService,
) {
super();
this.loopAutoSync();
}

private loopAutoSync(): void {
this.autoSync()
.then(() => timeout(1000 * 60 * 5)) // every five minutes
.then(() => timeout(1000 * 10)) // every five minutes
.then(() => this.loopAutoSync());
}

Expand Down

0 comments on commit d34ea68

Please sign in to comment.