fix(WebRTC): extend connection timeout from 1 second to 60 seconds for improved error handling

This commit is contained in:
Adam Shiervani 2025-03-24 20:15:08 +01:00
parent e660dd3870
commit 135a6c029f
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ export default function KvmIdRoute() {
);
// Fail connection if it's been over X seconds since we started connecting
if (elapsedTime > 1 * 1000) {
if (elapsedTime > 60 * 1000) {
console.error(`Connection failed after ${elapsedTime} ms.`);
setConnectionFailed(true);
closePeerConnection();