seawolf2357 commited on
Commit
96996bd
ยท
verified ยท
1 Parent(s): 228f8d9

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -439,7 +439,7 @@
439
  }, 5000);
440
  }
441
 
442
- async function setupWebRTC() {
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
  }