mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2025-04-20 10:33:45 +01:00
Compare commits
2 Commits
2cebd5eedb
...
f4db1ad95c
Author | SHA1 | Date | |
---|---|---|---|
f4db1ad95c | |||
efaee7594e |
@ -39,7 +39,7 @@ def main():
|
|||||||
) as client:
|
) as client:
|
||||||
client.callback.register([on_input_volume_meters, on_input_mute_state_changed])
|
client.callback.register([on_input_volume_meters, on_input_mute_state_changed])
|
||||||
|
|
||||||
while _ := input("<Enter> to exit>\n"):
|
while _ := input("Press <Enter> to exit\n"):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ class EventClient:
|
|||||||
except WebSocketTimeoutException as e:
|
except WebSocketTimeoutException as e:
|
||||||
self.logger.exception(f"{type(e).__name__}: {e}")
|
self.logger.exception(f"{type(e).__name__}: {e}")
|
||||||
raise OBSSDKTimeoutError("Timeout while waiting for event") from 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")
|
self.logger.debug(f"{type(e).__name__} terminating the event thread")
|
||||||
stop_event.set()
|
stop_event.set()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user