Make sure to dispose of the protected rooms set properly. (#709)

Fixes https://github.com/the-draupnir-project/Draupnir/issues/687.
This commit is contained in:
Gnuxie
2025-01-31 16:20:51 +00:00
committed by GitHub
parent 8764a17430
commit 057d2c1f82
+1
View File
@@ -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 {