fix(ui): fix screen rec stopping

This commit is contained in:
nick-delirium 2023-04-28 16:38:14 +02:00
parent 99f1b845d7
commit df21547235
2 changed files with 1 additions and 3 deletions

View file

@ -90,6 +90,7 @@ function ScreenRecorder({
);
setRecording(true);
} catch (e) {
stopRecordingHandler()
console.error(e);
}
};

View file

@ -54,9 +54,6 @@ export default class ScreenRecording {
}
stopRecording = () => {
const recordingState = this.store.get().recordingState
if (recordingState === SessionRecordingStatus.Off) return;
this.socket.emit("stop_recording")
this.toggleRecording(false)
}