Fix unpipe crash

This commit is contained in:
Bryan Ashby 2017-11-30 11:39:01 -07:00
parent 7809f92155
commit 22b09d8018
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}