Fix demo: wrong pid on windows #567

This commit is contained in:
coderaiser
2017-03-03 23:40:36 +02:00
committed by GitHub
parent 8693d067e3
commit 43558fa1dc
+1 -1
View File
@@ -69,7 +69,7 @@ app.ws('/terminals/:pid', function (ws, req) {
term.write(msg);
});
ws.on('close', function () {
process.kill(term.pid);
term.kill();
console.log('Closed terminal ' + term.pid);
// Clean things up
delete terminals[term.pid];