upgraded node-pty (fixes #84)

This commit is contained in:
Eugene Pankov 2017-07-10 17:30:42 +02:00
parent 92c0df7629
commit 42007f4fef
2 changed files with 7 additions and 1 deletions

View File

@ -39,7 +39,7 @@
"font-manager": "0.2.2",
"hterm-umdjs": "1.2.0",
"mz": "^2.6.0",
"node-pty": "0.6.2",
"node-pty": "0.6.8",
"winreg": "^1.2.3"
},
"false": {}

View File

@ -66,6 +66,12 @@ export class Session {
}
})
this.pty.on('exit', () => {
if (this.open) {
this.destroy()
}
})
this.pty.on('close', () => {
if (this.open) {
this.destroy()