Fixed BytesIO streams closing after capture

This commit is contained in:
Joel Collins 2020-01-15 11:53:15 +00:00
parent 387fdeeb7d
commit cdac9d0ac3

View file

@ -195,7 +195,8 @@ class MockStreamer(BaseCamera):
output.write(self.stream.getvalue())
output.close()
if isinstance(output, str):
output.close()
# HANDLE STREAM FRAMES