Pass blocking portal to mjpeg_stream.stop()
This was updated in LabThings-FastAPI v0.0.10, but wasn't changed as we moved over.
This commit is contained in:
parent
e53405f1ef
commit
421efa2866
1 changed files with 3 additions and 2 deletions
|
|
@ -446,8 +446,9 @@ class StreamingPiCamera2(BaseCamera):
|
||||||
else:
|
else:
|
||||||
self.stream_active = False
|
self.stream_active = False
|
||||||
if stop_web_stream:
|
if stop_web_stream:
|
||||||
self.mjpeg_stream.stop()
|
portal = lt.get_blocking_portal(self)
|
||||||
self.lores_mjpeg_stream.stop()
|
self.mjpeg_stream.stop(portal)
|
||||||
|
self.lores_mjpeg_stream.stop(portal)
|
||||||
logging.info("Stopped MJPEG stream.")
|
logging.info("Stopped MJPEG stream.")
|
||||||
|
|
||||||
# Adding a sleep to prevent camera getting confused by rapid commands
|
# Adding a sleep to prevent camera getting confused by rapid commands
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue