From f8ca5b9ceff10d40b5c1c75cc706bd246a8f2553 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Fri, 6 Sep 2024 08:44:08 +0200 Subject: [PATCH] fix: clear internal state on stop --- apps/server/src/stores/runtimeState.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/server/src/stores/runtimeState.ts b/apps/server/src/stores/runtimeState.ts index 5604756f2..d9b9d1f18 100644 --- a/apps/server/src/stores/runtimeState.ts +++ b/apps/server/src/stores/runtimeState.ts @@ -120,8 +120,10 @@ export function clear() { runtimeState.clock = clock.timeNow(); runtimeState.timer = { ...initialTimer }; - // we maintain the total delay + // when clearing, we maintain the total delay from the rundown + runtimeState._timer.forceFinish = null; runtimeState._timer.pausedAt = null; + runtimeState._timer.secondaryTarget = null; } /**