Catch websocket exception in output

This commit is contained in:
Nicolas Mowen 2023-08-19 10:51:26 -06:00 committed by GitHub
parent 28ea2afa51
commit 6a6f22130e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,6 +210,8 @@ class BroadcastThread(threading.Thread):
ws.send(buf, binary=True)
except ValueError:
pass
except ConnectionResetError as e:
logger.debug(f"Websocket unexpectedly closed {e}")
elif self.converter.process.poll() is not None:
break