Fix rare crash if client terms in door
This commit is contained in:
parent
64ded2514c
commit
48aa0fa606
|
@ -50,10 +50,13 @@ class TelnetClientConnection extends EventEmitter {
|
|||
if(!this.pipeRestored) {
|
||||
this.pipeRestored = true;
|
||||
|
||||
// client may have bailed
|
||||
if(_.has(this, 'client.term.output')) {
|
||||
this.client.term.output.unpipe(this.bridgeConnection);
|
||||
this.client.term.output.resume();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
connect(connectOpts) {
|
||||
this.bridgeConnection = net.createConnection(connectOpts, () => {
|
||||
|
|
Loading…
Reference in New Issue