Skip to content

Commit 6e748fc

Browse files
committed
Ignore any errors when failing to kill the server
1 parent 5f1a4b2 commit 6e748fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ app.on('quit', () => {
5353
// On windows, children die automatically.
5454
// Elsewhere, we have to make sure we clean up the whole group.
5555
// https://azimi.me/2014/12/31/kill-child_process-node-js.html
56-
process.kill(-server.pid);
56+
try {
57+
process.kill(-server.pid);
58+
} catch (e) { }
5759
}
5860
}
5961
});

0 commit comments

Comments
 (0)