Skip to content

NVR with realtime local object detection for IP cameras

Catch broken pipe when sending to websocket (#7556)

Nicolas Mowen7069ef93bbe0
diff --git a/frigate/output.py b/frigate/output.py
index e37920fdae..5f0a3411e0 100644
--- a/frigate/output.py
+++ b/frigate/output.py
@@ -210,7 +210,7 @@ class BroadcastThread(threading.Thread):
ws.send(buf, binary=True)
except ValueError:
pass
- except ConnectionResetError as e:
+ except (BrokenPipeError, ConnectionResetError) as e:
logger.debug(f"Websocket unexpectedly closed {e}")
elif self.converter.process.poll() is not None:
break