fix(tracker): fix restart timings

This commit is contained in:
nick-delirium 2023-06-06 14:36:41 +02:00
parent a6f16031a8
commit 0702843157
5 changed files with 10 additions and 7 deletions

View file

@ -18,9 +18,9 @@ function SubHeader() {
return (
<>
<div className="w-full px-4 py-2 flex items-center border-b min-h-3">
<div className="w-full px-4 pt-2 flex items-center border-b min-h-3">
{tabs.map((tab, i) => (
<Tab i={i} tab={tab} currentTab={currentTab} />
<Tab i={i} tab={tab} currentTab={tabs.length === 1 ? tab : currentTab} />
))}
</div>
{location && (

View file

@ -105,7 +105,7 @@ function SubHeader(props) {
<Tab
i={i}
tab={tab}
currentTab={currentTab}
currentTab={tabs.length === 1 ? tab : currentTab}
changeTab={(changeTo) => player.changeTab(changeTo)}
/>
))}

View file

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

View file

@ -282,7 +282,7 @@ export default class Assist {
setTimeout(() => {
this.app.start().then(() => { this.assistDemandedRestart = false }).catch(e => app.debug.error(e))
// TODO: check if it's needed; basically allowing some time for the app to finish everything before starting again
}, 350)
}, 500)
})
socket.on('AGENTS_CONNECTED', (ids: string[]) => {
ids.forEach(id =>{
@ -294,7 +294,10 @@ export default class Assist {
})
this.assistDemandedRestart = true
this.app.stop()
this.app.start().then(() => { this.assistDemandedRestart = false }).catch(e => app.debug.error(e))
setTimeout(() => {
this.app.start().then(() => { this.assistDemandedRestart = false }).catch(e => app.debug.error(e))
// TODO: check if it's needed; basically allowing some time for the app to finish everything before starting again
}, 500)
this.remoteControl?.reconnect(ids)
})

View file

@ -1,7 +1,7 @@
{
"name": "@openreplay/tracker",
"description": "The OpenReplay tracker main package",
"version": "8.0.0",
"version": "8.0.1-0",
"keywords": [
"logging",
"replay"