mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2026-04-18 05:53:32 +00:00
pass empty dict if data is None in trigger()
fixes bug with ExitStarted event. remove redundant assignment in conn_from_toml add explicit call to ws.close() in unsubscribe() patch bump
This commit is contained in:
@@ -61,7 +61,7 @@ class EventClient:
|
||||
self.data["d"].get("eventType"),
|
||||
self.data["d"].get("eventData"),
|
||||
)
|
||||
self.callback.trigger(event, data)
|
||||
self.callback.trigger(event, data if data else {})
|
||||
time.sleep(self.DELAY)
|
||||
|
||||
def unsubscribe(self):
|
||||
@@ -69,3 +69,4 @@ class EventClient:
|
||||
stop listening for events
|
||||
"""
|
||||
self.running = False
|
||||
self.base_client.ws.close()
|
||||
|
||||
Reference in New Issue
Block a user