From a50b6e31b2773a4a455f4fdf848390663f245315 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Thu, 12 Oct 2023 11:29:39 +0200 Subject: [PATCH] www: fix webrtc not sending STOP command --- www/app/transcripts/new/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/app/transcripts/new/page.tsx b/www/app/transcripts/new/page.tsx index bfcf13dd..89794005 100644 --- a/www/app/transcripts/new/page.tsx +++ b/www/app/transcripts/new/page.tsx @@ -67,7 +67,7 @@ const TranscriptCreate = () => { { - webRTC?.peer?.send(JSON.stringify({ cmd: "STOP" })); + webRTC?.send(JSON.stringify({ cmd: "STOP" })); setStream(null); setHasRecorded(true); }}