Merge branch 'master' into eos-integration

This commit is contained in:
Marek 2023-12-30 00:54:03 -06:00 committed by GitHub
commit 6287a05d13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -337,6 +337,7 @@ export default class Rcon extends EventEmitter {
if (type === SERVERDATA_AUTH) { if (type === SERVERDATA_AUTH) {
this.callbackIds.push({ id: this.count, cmd: body }); this.callbackIds.push({ id: this.count, cmd: body });
this.responseCallbackQueue.push(() => {}); this.responseCallbackQueue.push(() => {});
this.responseCallbackQueue.push((decodedPacket) => { this.responseCallbackQueue.push((decodedPacket) => {
this.client.removeListener('error', onError); this.client.removeListener('error', onError);
@ -350,6 +351,7 @@ export default class Rcon extends EventEmitter {
} }
}); });
} else { } else {
this.callbackIds.push({ id: this.count, cmd: body }); this.callbackIds.push({ id: this.count, cmd: body });
this.responseCallbackQueue.push((response) => { this.responseCallbackQueue.push((response) => {
this.client.removeListener('error', onError); this.client.removeListener('error', onError);