Skip to content

Commit

Permalink
fix stop virtual device.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgineer85 committed Nov 23, 2024
1 parent 2e2d99d commit f639b0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wigglecam/services/backends/cameras/virtualcamera.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def start(self, nominal_framerate: int = None):
def stop(self):
super().stop()

self._producer_thread.stop()
if self._producer_thread and self._producer_thread.is_alive():
self._producer_thread.stop()
self._producer_thread.join()

def camera_alive(self) -> bool:
super_alive = super().camera_alive()
Expand Down

0 comments on commit f639b0f

Please sign in to comment.