diff --git a/web/src/components/WebRtcPlayer.jsx b/web/src/components/WebRtcPlayer.jsx index 8ce4c7075..e4de124d2 100644 --- a/web/src/components/WebRtcPlayer.jsx +++ b/web/src/components/WebRtcPlayer.jsx @@ -59,6 +59,7 @@ export default function WebRtcPlayer({ camera, width, height }) { pc.addTransceiver('audio', { direction: 'recvonly' }); return () => { + pc.close(); ws.close(); }; }, [url]);