mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-14 18:26:11 -04:00
The collector mirrored isRecording from every state emission, including the start and stop requests, whose value the recorder has already moved past. On a loaded device that write can land after Recorder.start()'s, leaving isDebug false for the whole header-read window (5s) while the file logger is live. distinctUntilChangedBy collapses the initial state and the start request into one emission, drop(1) removes it, so only committed transitions are published. The operator order matters: drop(1) first would let the start request through. Fixes review finding F1.