fix(tracker): move worker stop to the end of stop func
This commit is contained in:
parent
845cf64e44
commit
0a66b23613
1 changed files with 3 additions and 3 deletions
|
|
@ -452,15 +452,15 @@ export default class App {
|
|||
stop(): void {
|
||||
if (this.activityState !== ActivityState.NotActive) {
|
||||
try {
|
||||
if (this.worker) {
|
||||
this.worker.postMessage("stop")
|
||||
}
|
||||
this.sanitizer.clear()
|
||||
this.observer.disconnect()
|
||||
this.nodes.clear()
|
||||
this.ticker.stop()
|
||||
this.stopCallbacks.forEach((cb) => cb())
|
||||
this.notify.log("OpenReplay tracking stopped.")
|
||||
if (this.worker) {
|
||||
this.worker.postMessage("stop")
|
||||
}
|
||||
} finally {
|
||||
this.activityState = ActivityState.NotActive
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue