diff --git a/desktop/flipper-server-core/src/devices/ios/IOSDevice.tsx b/desktop/flipper-server-core/src/devices/ios/IOSDevice.tsx index 5a2a52a8a..3a238ab87 100644 --- a/desktop/flipper-server-core/src/devices/ios/IOSDevice.tsx +++ b/desktop/flipper-server-core/src/devices/ios/IOSDevice.tsx @@ -81,6 +81,12 @@ export default class IOSDevice extends ServerDevice { } async startScreenCapture(destination: string) { + const recording = this.recording; + if (recording) { + throw new Error( + `There is already an active recording at ${recording.destination}`, + ); + } const process = this.iOSBridge.recordVideo(this.serial, destination); this.recording = {process, destination}; }