From 5c449b68d96204ac7d7e3306abd3c86c5650924f Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sun, 10 Mar 2024 07:51:55 +0100 Subject: [PATCH] [mirotalksfu] - fix typo --- app/src/Room.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/Room.js b/app/src/Room.js index be9fa89d..d5406e02 100644 --- a/app/src/Room.js +++ b/app/src/Room.js @@ -251,7 +251,7 @@ module.exports = class Room { const { maxIncomingBitrate, initialAvailableOutgoingBitrate, listenInfos } = this.webRtcTransport; const webRtcTransportOptions = { - listenInfos: listenInfos, + ...(this.webRtcServerActive ? { webRtcServer: this.webRtcServer } : { listenInfos }), enableUdp: true, enableTcp: true, preferUdp: true, @@ -259,8 +259,6 @@ module.exports = class Room { initialAvailableOutgoingBitrate, }; - if (this.webRtcServerActive) webRtcTransportOptions.webRtcServer = this.webRtcServer; - const transport = await this.router.createWebRtcTransport(webRtcTransportOptions); if (!transport) {