Fix: Misc fixes/changes

This commit is contained in:
SnuffSocket 2024-10-07 01:55:23 +03:00
parent a291b2fc4f
commit 9e4b345928
2 changed files with 3 additions and 2 deletions

View File

@ -317,8 +317,7 @@ def main():
event, values = window.read(timeout=30) # this higher timeout saves some cpu usage
# If we're in either mode and someone hits q, quit immediately
if event == "Exit" or event == sg.WIN_CLOSED and not config.settings.gui_disable_gui:
print(event == "Exit", event == sg.WIN_CLOSED, config.settings.gui_disable_gui)
if event in ("Exit", sg.WIN_CLOSED) and not config.settings.gui_disable_gui:
for eye in eyes:
eye.stop()
cancellation_event.set()

View File

@ -159,6 +159,8 @@ class OSCSender:
self.module_sender.send(osc_message=osc_message, client=self.vrcft_client)
case _:
raise Exception("Encountered message without a handler %s", osc_message.type)
except TypeError:
continue
except queue.Empty:
continue