mirror of https://github.com/jetkvm/kvm.git
fix(WebRTC): extend connection timeout from 1 second to 60 seconds for improved error handling
This commit is contained in:
parent
e660dd3870
commit
135a6c029f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue