Files
frigate/web/src
ryzendigoandGitHub e80da2b297 fix: WebSocket connection leaked on WebRTC player cleanup (#22473)
The connect() function creates a WebSocket but never stores the
reference. The useEffect cleanup only closes the RTCPeerConnection
via pcRef, leaving the WebSocket open.

Each time the component re-renders with changed deps (camera switch,
playback toggle, microphone toggle), a new WebSocket is created
without closing the previous one. This leaks connections until the
browser garbage-collects them or the server times out.

Store the WebSocket in a ref and close it in the cleanup function.
2026-03-16 06:47:07 -06:00
..
2026-03-15 07:26:23 -05:00
2026-03-15 07:26:23 -05:00
2026-03-12 16:57:42 -06:00
2026-03-07 06:43:00 -07:00
2026-03-15 07:26:23 -05:00
2026-03-07 06:43:00 -07:00
2024-02-28 16:23:56 -06:00
2025-02-10 09:42:35 -07:00
2022-03-11 07:49:06 -06:00