Fix rare race crash in CombatNet module
This commit is contained in:
parent
4074d68526
commit
ca0149eaf0
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue