mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
more graceful shutdown in the presence of a proxy_stream (#45246)
This commit is contained in:
parent
21b9b6b2c8
commit
a50fba4e0b
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user