fix: prevent double-finalize race condition in restartRecording on Windows
This commit is contained in:
@@ -563,6 +563,7 @@ export function useScreenRecorder(): UseScreenRecorderReturn {
|
||||
|
||||
restarting.current = true;
|
||||
discardRecordingId.current = activeRecordingId;
|
||||
allowAutoFinalize.current = false;
|
||||
|
||||
const stopPromises = [
|
||||
new Promise<void>((resolve) => {
|
||||
|
||||
Reference in New Issue
Block a user