fix(local-rec) Stop recording properly on size exceeded (#12757)

This commit is contained in:
Robert Pintilii 2023-01-11 11:57:34 +02:00 committed by GitHub
parent 265d8c4b29
commit 2dbb3c10e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ const LocalRecordingManager: ILocalRecordingManager = {
this.recordingData.push(e.data);
this.totalSize -= e.data.size;
if (this.totalSize <= 0) {
this.stopLocalRecording();
dispatch(stopLocalVideoRecording());
}
}
});