fix(tracker): typo; changelog
This commit is contained in:
parent
4bb19ecf99
commit
84496b9438
3 changed files with 8 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
|||
## 8.0.1
|
||||
|
||||
- fix peer reconnection strategy
|
||||
|
||||
## 8.0.0
|
||||
|
||||
- Keeping up with major tracker release.
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue