mirror of
https://git.proxmox.com/git/mirror_xterm.js
synced 2025-11-02 15:02:17 +00:00
Merge pull request #584 from coderaiser/patch-1
Fix demo: wrong pid on windows #567
This commit is contained in:
commit
c9ad3a595a
@ -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];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user