mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
Fix: Misc fixes/changes
This commit is contained in:
parent
a291b2fc4f
commit
9e4b345928
@ -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()
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user