Fix ESPHome media proxy exit criteria

This commit is contained in:
Erik 2024-10-27 16:15:37 +01:00
parent dd63ed7e69
commit 1ece39164f

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)