forked from Github/frigate
Catch broken pipe when sending to websocket (#7556)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user