mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-22 10:45:56 +02:00
Fix rare crash if client terms in door
This commit is contained in:
parent
64ded2514c
commit
48aa0fa606
1 changed files with 5 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue