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