fix: prevent double-finalize race condition in restartRecording on Windows

This commit is contained in:
Adam
2026-04-03 01:12:26 -05:00
parent 2f36160174
commit 846cf71e09
+1
View File
@@ -563,6 +563,7 @@ export function useScreenRecorder(): UseScreenRecorderReturn {
restarting.current = true;
discardRecordingId.current = activeRecordingId;
allowAutoFinalize.current = false;
const stopPromises = [
new Promise<void>((resolve) => {