mirror of
https://github.com/Project-Babble/ProjectBabble.git
synced 2026-11-27 04:16:24 -08:00
(fix) Fix bug where we spam state
This commit is contained in:
1 parent
bc5734b5e1
commit
c15d6871d0
2 files changed
+1
-4
No files matched your search
@@ -133,10 +133,7 @@ class Camera:
|
||||
if self.vft_camera is not None:
|
||||
self.vft_camera.close()
|
||||
else:
|
||||
# We created the camera earlier, just open it.
|
||||
# If the camera is already open it don't spam it!!
|
||||
if self.cancellation_event.wait(WAIT_TIME):
|
||||
return
|
||||
if (not self.vft_camera.is_open):
|
||||
self.vft_camera.open()
|
||||
should_push = False
|
||||
|
||||
@@ -473,7 +473,7 @@ class ViveTracker:
|
||||
except Exception:
|
||||
return False
|
||||
else:
|
||||
return "HTC Multimedia Camera" in device_name
|
||||
return "HTC Multimedia Camera" in str(device_name)
|
||||
|
||||
def dispose(self: 'ViveTracker') -> None:
|
||||
"""Dispose of tracker.
|
||||
|
||||
Reference in new issue
Block a user