Spaces:
Running
Running
Update index.html
Browse files- index.html +2 -2
index.html
CHANGED
@@ -439,7 +439,7 @@
|
|
439 |
}, 5000);
|
440 |
}
|
441 |
|
442 |
-
async
|
443 |
const config = __RTC_CONFIGURATION__;
|
444 |
peerConnection = new RTCPeerConnection(config);
|
445 |
|
@@ -513,7 +513,7 @@
|
|
513 |
|
514 |
// ์ ์ ํ ์ฌ์ฐ๊ฒฐ ์๋
|
515 |
setTimeout(() => {
|
516 |
-
if (peerConnection.connectionState !== 'connected') {
|
517 |
showError(`์ฐ๊ฒฐ ์ฌ์๋ ์ค... (${retryCount}/${maxRetries})`);
|
518 |
setupWebRTC();
|
519 |
}
|
|
|
439 |
}, 5000);
|
440 |
}
|
441 |
|
442 |
+
async function setupWebRTC() {
|
443 |
const config = __RTC_CONFIGURATION__;
|
444 |
peerConnection = new RTCPeerConnection(config);
|
445 |
|
|
|
513 |
|
514 |
// ์ ์ ํ ์ฌ์ฐ๊ฒฐ ์๋
|
515 |
setTimeout(() => {
|
516 |
+
if (peerConnection && peerConnection.connectionState !== 'connected') {
|
517 |
showError(`์ฐ๊ฒฐ ์ฌ์๋ ์ค... (${retryCount}/${maxRetries})`);
|
518 |
setupWebRTC();
|
519 |
}
|