Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit e1159cb

Browse files
committed
fix: reschedule status update
Reschedule status update before updating. So every failure during update will not terminate the refresh.
1 parent 947864c commit e1159cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/status-bar-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export class StatusBarManager {
8080
}
8181

8282
private async refreshStatus(): Promise<void> {
83+
setTimeout(() => { this.refreshStatus(); }, this.refreshInterval);
8384
try {
8485
if (this.githubManager.connected) {
8586
await this.updateStatus();
@@ -93,7 +94,6 @@ export class StatusBarManager {
9394
throw e;
9495
}
9596
}
96-
setTimeout(() => { this.refreshStatus(); }, this.refreshInterval);
9797
}
9898

9999
public async updateStatus(): Promise<void> {

0 commit comments

Comments
 (0)