mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 22:54:37 +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');
|
self.client.term.write('Connecting to CombatNet, please wait...\n');
|
||||||
|
|
||||||
const restorePipeToNormal = function() {
|
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(
|
const rlogin = new RLogin(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue