Skip to content

Commit

Permalink
Make sure to dispose of the protected rooms set properly. (#709)
Browse files Browse the repository at this point in the history
Fixes #687.
  • Loading branch information
Gnuxie authored Jan 31, 2025
1 parent 8764a17 commit 057d2c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Draupnir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 057d2c1

Please sign in to comment.