Fix #14919. Should throw exception when camera stream closed by frontend (#15028)

* Fix #14919. Should throw exception when camera stream closed by frontend

* Re-trigger CI

* pythonic re-raise
pull/15143/head
Jason Hu 2018-06-25 10:03:39 -07:00 committed by Paulus Schoutsen
parent dbae410cf4
commit 508d0459a7
2 changed files with 2 additions and 0 deletions

View File

@ -322,6 +322,7 @@ class Camera(Entity):
except asyncio.CancelledError:
_LOGGER.debug("Stream closed by frontend.")
response = None
raise
finally:
if response is not None:

View File

@ -233,6 +233,7 @@ class ProxyCamera(Camera):
_LOGGER.debug("Stream closed by frontend.")
req.close()
response = None
raise
finally:
if response is not None: