aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/argaze/TobiiGlassesPro2/TobiiData.py4
-rw-r--r--src/argaze/TobiiGlassesPro2/TobiiVideo.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/argaze/TobiiGlassesPro2/TobiiData.py b/src/argaze/TobiiGlassesPro2/TobiiData.py
index 903dcc7..95fa947 100644
--- a/src/argaze/TobiiGlassesPro2/TobiiData.py
+++ b/src/argaze/TobiiGlassesPro2/TobiiData.py
@@ -315,7 +315,9 @@ class TobiiDataStream(threading.Thread):
def __del__(self):
"""Stop data reception before destruction."""
- self.close()
+ if self.is_alive():
+
+ self.close()
def __keep_alive(self):
"""Maintain connection."""
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."""