fix(tracker): typo; changelog

This commit is contained in:
nick-delirium 2024-02-07 18:01:34 +01:00
parent 4bb19ecf99
commit 84496b9438
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,7 @@
## 8.0.1
- fix peer reconnection strategy
## 8.0.0
- Keeping up with major tracker release.

View file

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

View file

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