tracker check restarting status

This commit is contained in:
nick-delirium 2024-09-06 12:05:54 +02:00
parent dbd065aec7
commit 4d1350a770
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
3 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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"

View file

@ -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(() => {