Better disconnect - should resolve issues with SSH

This commit is contained in:
Bryan Ashby 2019-02-02 10:20:22 -07:00
parent 43c11dc288
commit 8ba80426e3
3 changed files with 21 additions and 3 deletions

View file

@ -550,6 +550,15 @@ function TelnetClient(input, output) {
this.emit('ready', { firstMenu : Config().loginServers.telnet.firstMenu } );
}
};
this.disconnect = function() {
try {
return this.output.end.apply(this.output, arguments);
}
catch(e) {
// nothing
}
};
}
util.inherits(TelnetClient, baseClient.Client);