mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-12 14:15:22 +03:00
Don't call error when connection has been closed on purpose
This commit is contained in:
parent
dfde663b49
commit
6e180d41bf
@ -328,7 +328,10 @@ function MSEPlayer({
|
|||||||
|
|
||||||
setBufferTimeout(
|
setBufferTimeout(
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (document.visibilityState === "visible") {
|
if (
|
||||||
|
document.visibilityState === "visible" &&
|
||||||
|
wsRef.current != undefined
|
||||||
|
) {
|
||||||
onError("stalled");
|
onError("stalled");
|
||||||
}
|
}
|
||||||
}, 3000),
|
}, 3000),
|
||||||
|
|||||||
@ -238,7 +238,10 @@ export default function WebRtcPlayer({
|
|||||||
|
|
||||||
setBufferTimeout(
|
setBufferTimeout(
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (document.visibilityState === "visible") {
|
if (
|
||||||
|
document.visibilityState === "visible" &&
|
||||||
|
pcRef.current != undefined
|
||||||
|
) {
|
||||||
onError("stalled");
|
onError("stalled");
|
||||||
}
|
}
|
||||||
}, 3000),
|
}, 3000),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user