Closed kyob1010 closed 7 years ago
When you stop a running server, it will kill the child process and set the variable to null which also known as "server.spawn".
Later, I exit my program. It means that it will trigger the callback of event process.exit. Here is where the bug happened.
"server.spawn === null" AND the callback calls "server.spawn.kill" function
I'll do a quick fix for that.
I send a pull request for my solution.
Merged the PR, thanks!
When you stop a running server, it will kill the child process and set the variable to null which also known as "server.spawn".
Later, I exit my program. It means that it will trigger the callback of event process.exit. Here is where the bug happened.
"server.spawn === null" AND the callback calls "server.spawn.kill" function
I'll do a quick fix for that.