mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2024-11-25 06:10:52 +00:00
should a socket operation be attempted after socket closed
then catch and log OSError and close thread.
This commit is contained in:
parent
2cebd5eedb
commit
efaee7594e
@ -78,7 +78,7 @@ class EventClient:
|
||||
except WebSocketTimeoutException as e:
|
||||
self.logger.exception(f"{type(e).__name__}: {e}")
|
||||
raise OBSSDKTimeoutError("Timeout while waiting for event") from e
|
||||
except WebSocketConnectionClosedException as e:
|
||||
except (WebSocketConnectionClosedException, OSError) as e:
|
||||
self.logger.debug(f"{type(e).__name__} terminating the event thread")
|
||||
stop_event.set()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user