Reducing the timeout to 2 seconds for gathering the ice candidates.

This commit is contained in:
Filipi Fuchter
2025-04-29 11:34:58 -03:00
parent f369ab4c1a
commit c3c4952abf

View File

@@ -24,7 +24,7 @@
let connected = false
let peerConnection = null
const waitForIceGatheringComplete = async (pc, timeoutMs = 5000) => {
const waitForIceGatheringComplete = async (pc, timeoutMs = 2000) => {
if (pc.iceGatheringState === 'complete') return;
console.log("Waiting for ICE gathering to complete...");
return new Promise((resolve) => {