fix: clear internal state on stop

This commit is contained in:
Carlos Valente
2024-09-06 08:44:08 +02:00
committed by Carlos Valente
parent b9db08089f
commit f8ca5b9cef
+3 -1
View File
@@ -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;
}
/**