Fix occasional null ref if client ends before door sock

This commit is contained in:
Bryan Ashby 2015-12-15 23:27:13 -07:00
parent 06295bbcc5
commit 727f9fdb1f
1 changed files with 4 additions and 2 deletions

View File

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