fix(tracker): fix for assist peer reconnection strategy

This commit is contained in:
nick-delirium 2024-02-12 16:45:01 +01:00
parent e0799f74e1
commit 2423a0e2b3
4 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
## 8.0.2
- another fix for peer reconnection strategy
## 8.0.1
- fix peer reconnection strategy

View file

@ -1,7 +1,7 @@
{
"name": "@openreplay/tracker-assist",
"description": "Tracker plugin for screen assistance through the WebRTC",
"version": "8.0.1",
"version": "8.0.2",
"keywords": [
"WebRTC",
"assistance",

View file

@ -435,7 +435,7 @@ export default class Assist {
peer.on('disconnected', () => {
if (peerReconnectAttempts < 30) {
this.peerReconnectTimeout = setTimeout(() => {
if (this.app.active()) {
if (this.app.active() && !peer.destroyed) {
peer.reconnect()
}
}, Math.min(peerReconnectAttempts, 8) * 2 * 1000)

View file

@ -1 +1 @@
export const pkgVersion = '8.0.1'
export const pkgVersion = '8.0.2'