Skip to content

Commit 8e20d01

Browse files
committed
Sleep earlier
1 parent 8aaa249 commit 8e20d01

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

extensions/ql-vscode/src/remote-queries/remote-queries-monitor.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ export class RemoteQueriesMonitor {
2929

3030
let attemptCount = 0;
3131

32-
// Wait a bit before starting to monitor the workflow run.
33-
await this.sleep(RemoteQueriesMonitor.sleepTime);
34-
3532
while (attemptCount <= RemoteQueriesMonitor.maxAttemptCount) {
33+
await this.sleep(RemoteQueriesMonitor.sleepTime);
34+
3635
if (cancellationToken && cancellationToken.isCancellationRequested) {
3736
return { status: 'Cancelled' };
3837
}
@@ -47,7 +46,6 @@ export class RemoteQueriesMonitor {
4746
return workflowStatus;
4847
}
4948

50-
await this.sleep(RemoteQueriesMonitor.sleepTime);
5149
attemptCount++;
5250
}
5351

0 commit comments

Comments
 (0)