Skip to content

Commit 070d131

Browse files
committed
Dispose app on exit
1 parent fc81fc3 commit 070d131

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node/entry.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ async function entry(): Promise<void> {
1717
if (isChild(wrapper)) {
1818
const args = await wrapper.handshake()
1919
wrapper.preventExit()
20-
await runCodeServer(args)
20+
const server = await runCodeServer(args)
21+
wrapper.onDispose(() => server.dispose())
2122
return
2223
}
2324

0 commit comments

Comments
 (0)