1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Merge pull request #1506 from matrix-org/dbkr/fix_event_listener_remove

Fix call event handler listener removing
This commit is contained in:
David Baker
2020-10-12 14:17:53 +01:00
committed by GitHub

View File

@@ -48,8 +48,8 @@ export class CallEventHandler {
} }
public stop() { public stop() {
this.client.removeEventListener("sync", this.evaluateEventBuffer); this.client.removeListener("sync", this.evaluateEventBuffer);
this.client.removeEventListener("event", this.onEvent); this.client.removeListener("event", this.onEvent);
} }
private evaluateEventBuffer = () => { private evaluateEventBuffer = () => {