Changed locks to 1s default

This commit is contained in:
Joel Collins 2020-06-25 16:48:17 +01:00
parent f60d85fa89
commit 2435842ff6
4 changed files with 7 additions and 7 deletions

View file

@ -23,7 +23,7 @@ class BaseCamera(metaclass=ABCMeta):
self.thread = None
self.camera = None
self.lock = StrictLock(name="Camera", timeout=None)
self.lock = StrictLock(name="Camera", timeout=1)
self.frame = None
self.last_access = 0
@ -55,7 +55,7 @@ class BaseCamera(metaclass=ABCMeta):
@abstractmethod
def update_settings(self, config: dict):
"""Update settings from a config dictionary"""
with self.lock:
with self.lock(timeout=None):
# Apply valid config params to camera object
for key, value in config.items(): # For each provided setting
if hasattr(self, key): # If the instance has a matching property