mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35: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' });
|
pc.addTransceiver('audio', { direction: 'recvonly' });
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
|
pc.close();
|
||||||
ws.close();
|
ws.close();
|
||||||
};
|
};
|
||||||
}, [url]);
|
}, [url]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user