mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 20:25:26 +03:00
try disconnecting to improve memory usage
This commit is contained in:
parent
1beb990f43
commit
3b76fef97c
@ -243,6 +243,10 @@ function MSEPlayer({ camera, className, onPlaying }: MSEPlayerProps) {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
onConnect();
|
onConnect();
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
onDisconnect();
|
||||||
|
};
|
||||||
}, [wsURL]);
|
}, [wsURL]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user