fix: prevent double-finalize race condition in restartRecording on Windos#293
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA single-line fix in the Changes
Possibly related PRs
Poem
🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Fixes a bug where clicking the Restart button in the recording HUD would stop the recording and open the video editor instead of discarding the current recording and starting a fresh one.
Motivation
On Windows, a race condition caused
finalizeRecordingto be called twice for the same recording session. The second call had no discard protection and would save the footage and open the editor - exactly as if the Stop button had been pressed. This made the Restart button non-functional on Windows.Type of Change
Bug Fix
Related Issue(s)
Fixes #292
Testing
Checklist
Summary by CodeRabbit
Bug Fixes