Fix occasional null ref if client ends before door sock
This commit is contained in:
parent
06295bbcc5
commit
727f9fdb1f
|
@ -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…
Reference in New Issue