forked from platypush/platypush
Do wait_recording until the client disconnects
This commit is contained in:
parent
b599c622c4
commit
69a03fa025
1 changed files with 2 additions and 1 deletions
|
@ -449,7 +449,8 @@ class CameraPiPlugin(CameraPlugin):
|
||||||
try:
|
try:
|
||||||
if stream:
|
if stream:
|
||||||
camera.start_recording(stream, format=format)
|
camera.start_recording(stream, format=format)
|
||||||
camera.wait_recording()
|
while True:
|
||||||
|
camera.wait_recording(1)
|
||||||
except ConnectionError:
|
except ConnectionError:
|
||||||
self.logger.info('Client closed connection')
|
self.logger.info('Client closed connection')
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in a new issue