From b220aaef28b6e9cb03a0d2f247b09c9253d114e5 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 5 Dec 2020 22:59:46 +0100 Subject: [PATCH] Fixed unlimited Video retries --- shared/js/connection/rtc/Connection.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shared/js/connection/rtc/Connection.ts b/shared/js/connection/rtc/Connection.ts index 9b7c6d71..a9de1bba 100644 --- a/shared/js/connection/rtc/Connection.ts +++ b/shared/js/connection/rtc/Connection.ts @@ -773,9 +773,6 @@ export class RTCConnection { } public doInitialSetup() { - /* initialize rtc connection */ - this.retryCalculator.reset(); - if(!("RTCPeerConnection" in window)) { this.handleFatalError(tr("WebRTC has been disabled (RTCPeerConnection is not defined)"), false); return; @@ -917,6 +914,7 @@ export class RTCConnection { /* will be called by the server connection handler */ } else { this.reset(true); + this.retryCalculator.reset(); } }