Fix rare race crash in CombatNet module

This commit is contained in:
Bryan Ashby 2018-06-18 20:17:56 -06:00
parent 4074d68526
commit ca0149eaf0
1 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,9 @@ exports.getModule = class CombatNetModule extends MenuModule {
self.client.term.write('Connecting to CombatNet, please wait...\n');
const restorePipeToNormal = function() {
if(self.client.term.output) {
self.client.term.output.removeListener('data', sendToRloginBuffer);
}
};
const rlogin = new RLogin(