Commit 2c38a7dc authored by Joel Collins's avatar Joel Collins
Browse files

Delegate starting stream worker

parent 6e22376d
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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):
+3 −1
Original line number Diff line number Diff line
@@ -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):