mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-24 02:06:15 +00:00
Do not set stop_event to None when stopping thread
This commit is contained in:
committed by
Caroline Pascal
parent
38327fdc84
commit
5e11c8db93
@@ -486,7 +486,6 @@ class OpenCVCamera(Camera):
|
|||||||
self.thread.join(timeout=2.0)
|
self.thread.join(timeout=2.0)
|
||||||
|
|
||||||
self.thread = None
|
self.thread = None
|
||||||
self.stop_event = None
|
|
||||||
|
|
||||||
with self.frame_lock:
|
with self.frame_lock:
|
||||||
self.latest_frame = None
|
self.latest_frame = None
|
||||||
|
|||||||
Reference in New Issue
Block a user