Fix ESPHome media proxy exit criteria (#129267)

This commit is contained in:
Erik Montnemery
2024-10-27 18:39:49 +01:00
committed by GitHub
parent 88f0a33e69
commit 2888e5748e

View File

@@ -181,7 +181,6 @@ class FFmpegConvertResponse(web.StreamResponse):
self.hass.is_running
and (request.transport is not None)
and (not request.transport.is_closing())
and (proc.returncode is None)
and (chunk := await proc.stdout.read(self.chunk_size))
):
await writer.write(chunk)