Skip to content

Commit 0568f79

Browse files
committed
Handle failed server stops (taskkill+clean stop race)
1 parent e55b377 commit 0568f79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stop-server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export async function stopServer(proc: ChildProcess.ChildProcess, token: string)
2727
await delay(100);
2828

2929
if (Date.now() >= deadline) {
30-
await hardKill(proc);
30+
await hardKill(proc)
31+
.catch(console.warn); // Not much we can do if this fails really
3132
break;
3233
}
3334
} while (isRunning(proc.pid!))

0 commit comments

Comments
 (0)