fix(ui): fix screen rec stopping
This commit is contained in:
parent
99f1b845d7
commit
df21547235
2 changed files with 1 additions and 3 deletions
|
|
@ -90,6 +90,7 @@ function ScreenRecorder({
|
|||
);
|
||||
setRecording(true);
|
||||
} catch (e) {
|
||||
stopRecordingHandler()
|
||||
console.error(e);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue