www: fix webrtc not sending STOP command

This commit is contained in:
2023-10-12 11:29:39 +02:00
committed by Mathieu Virbel
parent 35af25d4e8
commit a50b6e31b2

View File

@@ -67,7 +67,7 @@ const TranscriptCreate = () => {
<Recorder
setStream={setStream}
onStop={() => {
webRTC?.peer?.send(JSON.stringify({ cmd: "STOP" }));
webRTC?.send(JSON.stringify({ cmd: "STOP" }));
setStream(null);
setHasRecorded(true);
}}