mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Close pc connection
This commit is contained in:
parent
6a204a839e
commit
c6a1e5ab9f
@ -59,6 +59,7 @@ export default function WebRtcPlayer({ camera, width, height }) {
|
||||
pc.addTransceiver('audio', { direction: 'recvonly' });
|
||||
|
||||
return () => {
|
||||
pc.close();
|
||||
ws.close();
|
||||
};
|
||||
}, [url]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user