fix: Update comments for WebRTC connection handling in KvmIdRoute

This commit is contained in:
Adam Shiervani 2025-04-02 23:05:25 +02:00
parent ed914b3578
commit 19915abbca
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,6 @@ export default function KvmIdRoute() {
console.log("Successfully got Remote Session Description. Setting."); console.log("Successfully got Remote Session Description. Setting.");
setLoadingMessage("Setting remote session description..."); setLoadingMessage("Setting remote session description...");
// When vivaldi has disabled "Broadcast IP for Best WebRTC Performance" this goes on forever
const decodedSd = atob(json.sd); const decodedSd = atob(json.sd);
const parsedSd = JSON.parse(decodedSd); const parsedSd = JSON.parse(decodedSd);
pc.setRemoteDescription(new RTCSessionDescription(parsedSd)); pc.setRemoteDescription(new RTCSessionDescription(parsedSd));
@ -215,6 +214,7 @@ export default function KvmIdRoute() {
const checkInterval = setInterval(() => { const checkInterval = setInterval(() => {
attempts++; attempts++;
// When vivaldi has disabled "Broadcast IP for Best WebRTC Performance", this never connects
if (pc.sctp?.state === "connected") { if (pc.sctp?.state === "connected") {
console.log("Remote description set"); console.log("Remote description set");
clearInterval(checkInterval); clearInterval(checkInterval);