Do wait_recording until the client disconnects

This commit is contained in:
Fabio Manganiello 2019-08-17 00:27:19 +02:00
parent b599c622c4
commit 69a03fa025

View file

@ -449,7 +449,8 @@ class CameraPiPlugin(CameraPlugin):
try:
if stream:
camera.start_recording(stream, format=format)
camera.wait_recording()
while True:
camera.wait_recording(1)
except ConnectionError:
self.logger.info('Client closed connection')
finally: