Fix demo: wrong pid on windows #567
This commit is contained in:
+1
-1
@@ -69,7 +69,7 @@ app.ws('/terminals/:pid', function (ws, req) {
|
|||||||
term.write(msg);
|
term.write(msg);
|
||||||
});
|
});
|
||||||
ws.on('close', function () {
|
ws.on('close', function () {
|
||||||
process.kill(term.pid);
|
term.kill();
|
||||||
console.log('Closed terminal ' + term.pid);
|
console.log('Closed terminal ' + term.pid);
|
||||||
// Clean things up
|
// Clean things up
|
||||||
delete terminals[term.pid];
|
delete terminals[term.pid];
|
||||||
|
|||||||
Reference in New Issue
Block a user