]> git.proxmox.com Git - mirror_xterm.js.git/blobdiff - demo/app.js
higher timeout for test case
[mirror_xterm.js.git] / demo / app.js
index 3439ea99c9a52852d66ca790774be3013e13e0ef..8637dad865e7d8d565fd3aecb8272a6e4594a077 100644 (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];