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:
onyx-and-iris
2022-09-26 10:58:02 +01:00
parent c2b6757796
commit 1db3b2db4d
4 changed files with 6 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ class Observer:
"""An input's mute state has changed."""
print(f"{data.input_name} mute toggled")
def on_exit_started(self, data):
def on_exit_started(self, _):
"""OBS has begun the shutdown process."""
print(f"OBS closing!")
self._cl.unsubscribe()