Skip to content

Commit b692478

Browse files
fix retry
1 parent cf00054 commit b692478

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Sandboxes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export class Sandboxes {
154154
try {
155155
await this.shutdown(sandboxId);
156156
didRestart = true;
157+
break;
157158
} catch (e) {
158159
await sleep(500);
159160
}
@@ -168,6 +169,7 @@ export class Sandboxes {
168169
for (let attempt = 1; attempt <= 3; attempt++) {
169170
try {
170171
startResponse = await startVm(this.apiClient, sandboxId, opts);
172+
break;
171173
} catch (e) {
172174
await sleep(500);
173175
}

0 commit comments

Comments
 (0)