tracker check restarting status
This commit is contained in:
parent
dbd065aec7
commit
4d1350a770
3 changed files with 6 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
|||
# 14.0.7
|
||||
|
||||
- check for stopping status during restarts
|
||||
|
||||
# 14.0.6
|
||||
|
||||
- support feature off toggle for feature flags and usability testing
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@openreplay/tracker",
|
||||
"description": "The OpenReplay tracker main package",
|
||||
"version": "14.0.6",
|
||||
"version": "14.0.7-beta.0",
|
||||
"keywords": [
|
||||
"logging",
|
||||
"replay"
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ function reset(): Promise<any> {
|
|||
}
|
||||
|
||||
function initiateRestart(): void {
|
||||
if (workerStatus === WorkerStatus.Stopped) return
|
||||
if ([WorkerStatus.Stopped, WorkerStatus.Stopping].includes(workerStatus)) return
|
||||
postMessage('a_stop')
|
||||
// eslint-disable-next-line
|
||||
reset().then(() => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue