record-daemon: fix obs recording

This commit is contained in:
vhaudiquet committed 2026-03-20 20:34:44 +01:00
1 parent dbb224e118
commit 1166424c29
12 files changed
+3717 -515

No files matched your search

+3 -1
View File
@@ -179,7 +179,9 @@ impl DaemonStateMachine {
// From Recording
(DaemonState::Recording, StateTransition::GameEnded) => Some(DaemonState::Monitoring),
// Allow GameStarted from Recording (handles case where GameEnded wasn't received)
(DaemonState::Recording, StateTransition::GameStarted { .. }) => Some(DaemonState::Recording),
(DaemonState::Recording, StateTransition::GameStarted { .. }) => {
Some(DaemonState::Recording)
}
(DaemonState::Recording, StateTransition::ClientStopped) => Some(DaemonState::Idle),
(DaemonState::Recording, StateTransition::Error(_)) => Some(DaemonState::Error),
(DaemonState::Recording, StateTransition::Shutdown) => Some(DaemonState::ShuttingDown),