fix(tracker): fix for assist peer reconnection strategy
This commit is contained in:
parent
e0799f74e1
commit
2423a0e2b3
4 changed files with 7 additions and 3 deletions
|
|
@ -1,3 +1,7 @@
|
|||
## 8.0.2
|
||||
|
||||
- another fix for peer reconnection strategy
|
||||
|
||||
## 8.0.1
|
||||
|
||||
- fix peer reconnection strategy
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
export const pkgVersion = '8.0.1'
|
||||
export const pkgVersion = '8.0.2'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue