mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-26 09:29:10 +00:00
fix: stop timer on rundown switch
This commit is contained in:
@@ -605,6 +605,7 @@ export async function initRundown(
|
|||||||
customFields: Readonly<CustomFields>,
|
customFields: Readonly<CustomFields>,
|
||||||
reload: boolean = false,
|
reload: boolean = false,
|
||||||
) {
|
) {
|
||||||
|
runtimeService.stop();
|
||||||
const { rundownMetadata, revision } = rundownCache.init(rundown, customFields);
|
const { rundownMetadata, revision } = rundownCache.init(rundown, customFields);
|
||||||
logger.info(LogOrigin.Server, `Switch to rundown: ${rundown.id}`);
|
logger.info(LogOrigin.Server, `Switch to rundown: ${rundown.id}`);
|
||||||
// notify runtime that rundown has changed
|
// notify runtime that rundown has changed
|
||||||
|
|||||||
Reference in New Issue
Block a user