setTurnServers doesn't need to be async

This commit is contained in:
Matthew Hodgson 2022-09-26 09:02:22 +01:00 committed by GitHub
parent 3d7852a469
commit 6570ec46f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ export class CallHandler implements RoomStateHandler {
this._loadCallEntries(callEntries, txn); this._loadCallEntries(callEntries, txn);
} }
async setTurnServers(turnServers: RTCIceServer[]) { setTurnServers(turnServers: RTCIceServer[]) {
this.options.turnServers = turnServers; this.options.turnServers = turnServers;
this.groupCallOptions.turnServers = turnServers; this.groupCallOptions.turnServers = turnServers;
// TODO: we should update any ongoing peerconnections if the TURN server details have changed // TODO: we should update any ongoing peerconnections if the TURN server details have changed