mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-04 00:41:56 +02:00
Fix occasional null ref if client ends before door sock
This commit is contained in:
parent
06295bbcc5
commit
727f9fdb1f
1 changed files with 4 additions and 2 deletions
|
@ -48,8 +48,10 @@ Door.prototype.run = function() {
|
|||
};
|
||||
|
||||
var restore = function(piped) {
|
||||
self.client.term.output.unpipe(piped);
|
||||
self.client.term.output.resume();
|
||||
if(self.client.term.output) {
|
||||
self.client.term.output.unpipe(piped);
|
||||
self.client.term.output.resume();
|
||||
}
|
||||
};
|
||||
|
||||
var sockServer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue