mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 19:25:22 +03:00
Catch broken pipe when sending to websocket
This commit is contained in:
parent
7c629c1874
commit
54f0b3c61e
@ -210,7 +210,7 @@ class BroadcastThread(threading.Thread):
|
|||||||
ws.send(buf, binary=True)
|
ws.send(buf, binary=True)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
except ConnectionResetError as e:
|
except (BrokenPipeError, ConnectionResetError) as e:
|
||||||
logger.debug(f"Websocket unexpectedly closed {e}")
|
logger.debug(f"Websocket unexpectedly closed {e}")
|
||||||
elif self.converter.process.poll() is not None:
|
elif self.converter.process.poll() is not None:
|
||||||
break
|
break
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user