more graceful shutdown in the presence of a proxy_stream (#45246)

This commit is contained in:
jlvaillant 2021-01-17 08:10:22 -08:00 committed by GitHub
parent 21b9b6b2c8
commit a50fba4e0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,7 @@ async def async_aiohttp_proxy_stream(
await response.prepare(request)
try:
while True:
while hass.is_running:
with async_timeout.timeout(timeout):
data = await stream.read(buffer_size)