aboutsummaryrefslogtreecommitdiff
path: root/src/argaze/TobiiGlassesPro2/TobiiVideo.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/argaze/TobiiGlassesPro2/TobiiVideo.py')
-rw-r--r--src/argaze/TobiiGlassesPro2/TobiiVideo.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/argaze/TobiiGlassesPro2/TobiiVideo.py b/src/argaze/TobiiGlassesPro2/TobiiVideo.py
index c7901f3..82ee429 100644
--- a/src/argaze/TobiiGlassesPro2/TobiiVideo.py
+++ b/src/argaze/TobiiGlassesPro2/TobiiVideo.py
@@ -152,7 +152,9 @@ class TobiiVideoStream(threading.Thread):
def __del__(self):
"""Stop data reception before destruction."""
- self.close()
+ if self.is_alive():
+
+ self.close()
def __keep_alive(self):
"""Maintain connection."""