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) {
|
if(!this.pipeRestored) {
|
||||||
this.pipeRestored = true;
|
this.pipeRestored = true;
|
||||||
|
|
||||||
this.client.term.output.unpipe(this.bridgeConnection);
|
// client may have bailed
|
||||||
this.client.term.output.resume();
|
if(_.has(this, 'client.term.output')) {
|
||||||
|
this.client.term.output.unpipe(this.bridgeConnection);
|
||||||
|
this.client.term.output.resume();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue