Fix unpipe crash
This commit is contained in:
parent
7809f92155
commit
22b09d8018
|
@ -48,7 +48,7 @@ class TelnetClientConnection extends EventEmitter {
|
|||
this.pipeRestored = true;
|
||||
|
||||
// client may have bailed
|
||||
if(_.has(this, 'client.term.output')) {
|
||||
if(null !== _.get(this, 'client.term.output', null)) {
|
||||
if(this.bridgeConnection) {
|
||||
this.client.term.output.unpipe(this.bridgeConnection);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue