Merge branch 'master' into fix/terminate-deleted-user-sessions

This commit is contained in:
Cooldude2606 authored and GitHub committed 2026-09-13 15:18:25 +01:00
commit c355fc6888
9 files changed
+174 -17

No files matched your search

+7 -3
View File
@@ -48,9 +48,13 @@ export default class ControlConnection extends BaseConnection {
this._version = registerData.version;
this.connector.on("connect", () => {
this.connector._socket!.clusterio_ignore_dump = Boolean(this.ws_dumper);
});
// A resume installs a fresh socket, so re-apply the ignore flag or the
// dumper's own frames get echoed back into it and recurse forever.
for (let event of ["connect", "resume"] as const) {
this.connector.on(event, () => {
this.connector._socket!.clusterio_ignore_dump = Boolean(this.ws_dumper);
});
}
this.connector.on("close", () => {
if (this.logTransport) {
this._controller.clusterLogger.remove(this.logTransport);