From 846cf71e09747d0183601664cd129acfa00f16b9 Mon Sep 17 00:00:00 2001 From: Adam <69064669+abres33@users.noreply.github.com> Date: Fri, 3 Apr 2026 01:12:26 -0500 Subject: [PATCH] fix: prevent double-finalize race condition in restartRecording on Windows --- src/hooks/useScreenRecorder.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hooks/useScreenRecorder.ts b/src/hooks/useScreenRecorder.ts index 0e1e9ba..e251e1d 100644 --- a/src/hooks/useScreenRecorder.ts +++ b/src/hooks/useScreenRecorder.ts @@ -563,6 +563,7 @@ export function useScreenRecorder(): UseScreenRecorderReturn { restarting.current = true; discardRecordingId.current = activeRecordingId; + allowAutoFinalize.current = false; const stopPromises = [ new Promise((resolve) => {