Fixed broken references to capture list

This commit is contained in:
Joel Collins 2020-04-28 14:47:22 +01:00
parent 45ee112e6f
commit a34214b9fb
5 changed files with 29 additions and 17 deletions

View file

@ -79,12 +79,6 @@ class BaseCamera(metaclass=ABCMeta):
def close(self):
"""Close the BaseCamera and all attached StreamObjects."""
logging.info("Closing {}".format(self))
# Close all StreamObjects
for capture_list in [self.images.values(), self.videos.values()]:
for stream_object in capture_list:
stream_object.close()
# Empty temp directory
self.clear_tmp()
# Stop worker thread
self.stop_worker()
logging.info("Closed {}".format(self))