Skip to content
This repository was archived by the owner on Feb 6, 2022. It is now read-only.

Commit c7c5053

Browse files
committed
Close event on child process
1 parent 85f03fd commit c7c5053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function runScriptInWebsocket(id, ws) {
5353
child.stderr.on('data', (data) => {
5454
ws.send(`${id}:error:\n${data}`);
5555
});
56-
child.stderr.on('close', () => {
56+
child.on('close', () => {
5757
ws.send(`${id}:done`);
5858
});
5959
}

0 commit comments

Comments
 (0)