Skip to content

Commit 95b1187

Browse files
committed
fix: cleanup after pieceInstancesLiveQuery
1 parent 3f21504 commit 95b1187

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

meteor/server/api/deviceTriggers/PieceInstancesObserver.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,6 @@ export class PieceInstancesObserver {
9494
this.#cancelCache()
9595
this.#observers.forEach((observer) => observer.stop())
9696
this.#cleanup?.()
97+
this.#cleanup = undefined
9798
}
9899
}

meteor/server/api/deviceTriggers/StudioObserver.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ export class StudioObserver extends EventEmitter {
235235
if (this.#disposed) {
236236
// If we were disposed of while waiting for the observer to be created, stop it immediately
237237
this.#rundownsLiveQuery.stop()
238+
this.#pieceInstancesLiveQuery.stop()
238239
}
239240
}, REACTIVITY_DEBOUNCE)
240241

0 commit comments

Comments
 (0)