Skip to content

Commit

Permalink
chore: viz reset action also resets state
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-dewit committed Mar 5, 2024
1 parent 4ea028e commit 0337a72
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ export class VizMSEDevice extends DeviceWithState<VizMSEState, DeviceOptionsVizM
await this.purgeRundown(true) // note - this might not be 100% necessary
await this.clearEngines()
await this._vizmseManager?.activate(payload?.activeRundownPlaylistId)

// lastly make sure we reset so timeline state is sent again
this.clearStates()
this.emit('resetResolver')
}

async executeAction(actionId: string, payload?: Record<string, any> | undefined): Promise<ActionExecutionResult> {
Expand Down

0 comments on commit 0337a72

Please sign in to comment.