mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-09 22:24:35 +02:00
Fix rare race crash in CombatNet module
This commit is contained in:
parent
4074d68526
commit
ca0149eaf0
1 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,9 @@ exports.getModule = class CombatNetModule extends MenuModule {
|
|||
self.client.term.write('Connecting to CombatNet, please wait...\n');
|
||||
|
||||
const restorePipeToNormal = function() {
|
||||
self.client.term.output.removeListener('data', sendToRloginBuffer);
|
||||
if(self.client.term.output) {
|
||||
self.client.term.output.removeListener('data', sendToRloginBuffer);
|
||||
}
|
||||
};
|
||||
|
||||
const rlogin = new RLogin(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue