mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Catch broken pipe when sending to websocket (#7556)
This commit is contained in:
parent
737681aa4f
commit
7069ef93bb
@ -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