Commit 226e787c authored by Joel Collins's avatar Joel Collins
Browse files

Catch exceptions if pausing an inactive stream

parent 1d1b501c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -359,7 +359,10 @@ class StreamingCamera(BaseCamera):
            resolution = self.config['image_resolution']

        # Stop the camera video recording on port 1
        try:
            self.camera.stop_recording(splitter_port=splitter_port)
        except picamera.exc.PiCameraNotRecording:
            logging.info("Not recording on splitter_port {}".format(splitter_port))

        # Increase the resolution for taking an image
        self.camera.resolution = resolution