mirror of https://github.com/jetkvm/kvm.git
fix: Update comments for WebRTC connection handling in KvmIdRoute
This commit is contained in:
parent
ed914b3578
commit
19915abbca
|
@ -202,7 +202,6 @@ export default function KvmIdRoute() {
|
|||
console.log("Successfully got Remote Session Description. Setting.");
|
||||
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 parsedSd = JSON.parse(decodedSd);
|
||||
pc.setRemoteDescription(new RTCSessionDescription(parsedSd));
|
||||
|
@ -215,6 +214,7 @@ export default function KvmIdRoute() {
|
|||
|
||||
const checkInterval = setInterval(() => {
|
||||
attempts++;
|
||||
// When vivaldi has disabled "Broadcast IP for Best WebRTC Performance", this never connects
|
||||
if (pc.sctp?.state === "connected") {
|
||||
console.log("Remote description set");
|
||||
clearInterval(checkInterval);
|
||||
|
|
Loading…
Reference in New Issue