From 7069ef93bbe0f82dee972ac749c3961e96f27df4 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 1 Sep 2023 06:06:39 -0600 Subject: [PATCH] Catch broken pipe when sending to websocket (#7556) --- frigate/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/output.py b/frigate/output.py index e37920fda..5f0a3411e 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