From 057d2c1f82dbf520469de22921cbbebce4738edf Mon Sep 17 00:00:00 2001 From: Gnuxie <50846879+Gnuxie@users.noreply.github.com> Date: Fri, 31 Jan 2025 16:20:51 +0000 Subject: [PATCH] Make sure to dispose of the protected rooms set properly. (#709) Fixes https://github.com/the-draupnir-project/Draupnir/issues/687. --- src/Draupnir.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Draupnir.ts b/src/Draupnir.ts index 5682e418..d78fb30e 100644 --- a/src/Draupnir.ts +++ b/src/Draupnir.ts @@ -367,6 +367,7 @@ export class Draupnir implements Client, MatrixAdaptorContext { public stop(): void { this.clientRooms.off("timeline", this.timelineEventListener); this.reportPoller?.stop(); + this.protectedRoomsSet.unregisterListeners(); } public createRoomReference(roomID: StringRoomID): MatrixRoomID {