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

Fix call event handler listener removing

Wrong kind of event emitter...
This commit is contained in:
David Baker
2020-10-12 14:12:34 +01:00
parent d8c4101fdd
commit ade3b3a021

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 = () => {