From 9a787bbd3b393de17af82935956c3ea0b7987131 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Tue, 7 Nov 2023 15:18:24 -0700 Subject: [PATCH] Handle websocket exception --- frigate/output.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frigate/output.py b/frigate/output.py index 36711e43f..e027e5442 100644 --- a/frigate/output.py +++ b/frigate/output.py @@ -20,8 +20,8 @@ from ws4py.server.wsgirefserver import ( WSGIServer, ) from ws4py.server.wsgiutils import WebSocketWSGIApplication -from ws4py.websocket import WebSocket +from frigate.comms.ws import WebSocket from frigate.config import BirdseyeModeEnum, FrigateConfig from frigate.const import BASE_DIR, BIRDSEYE_PIPE from frigate.types import CameraMetricsTypes @@ -175,7 +175,7 @@ class FFMpegConverter(threading.Thread): os.close(stdin) self.reading_birdseye = False - def _write(self, b) -> None: + def __write(self, b) -> None: self.process.stdin.write(b) if self.bd_pipe: @@ -215,7 +215,7 @@ class FFMpegConverter(threading.Thread): while not self.stop_event.is_set(): try: frame = self.input_queue.get(True, timeout=1) - self._write(frame) + self.__write(frame) except queue.Empty: pass