Delegate starting stream worker

This commit is contained in:
Joel Collins 2020-07-06 13:33:17 +01:00
parent 6e22376d9e
commit 2c38a7dc43
2 changed files with 3 additions and 6 deletions

View file

@ -30,15 +30,10 @@ class BaseCamera(metaclass=ABCMeta):
self.event = ClientEvent()
self.stop = False # Used to indicate that the stream loop should break
self.stream_timeout = 20
self.stream_active = False
self.record_active = False
self.preview_active = False
# Start the stream worker on init
self.start_worker()
@property
@abstractmethod
def configuration(self):

View file

@ -116,6 +116,8 @@ class PiCameraStreamer(BaseCamera):
"picamera_lst.npy"
) #: str: Path of .npy lens shading table file
# Start the stream worker on init
self.start_worker()
@property
def configuration(self):