fix unit tests

This commit is contained in:
Remi Cadene
2024-09-09 19:19:05 +02:00
parent 96cc2433d6
commit 2469c99053
2 changed files with 4 additions and 4 deletions

View File

@@ -337,9 +337,7 @@ class OpenCVCamera:
return color_image
def read_loop(self):
# TODO(rcadene): implement safe exit for the threads,
# to avoid Segfault when main process finishes
while self.stop_event is None or not self.stop_event.is_set():
while not self.stop_event.is_set():
self.color_image = self.read()
def async_read(self):