mirror of https://github.com/home-assistant/core
Remove duplicated finalize_stream code in stream (#42171)
This commit is contained in:
parent
8e063e94da
commit
6a59e79bc6
|
@ -160,10 +160,6 @@ def _stream_worker_internal(hass, stream, quit_event):
|
|||
audio_stream = None
|
||||
|
||||
except (av.AVError, StopIteration) as ex:
|
||||
if not stream.keepalive:
|
||||
# End of stream, clear listeners and stop thread
|
||||
for fmt, _ in outputs.items():
|
||||
hass.loop.call_soon_threadsafe(stream.outputs[fmt].put, None)
|
||||
_LOGGER.error(
|
||||
"Error demuxing stream while finding first packet: %s", str(ex)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue