mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix flaky stream tests due to race in idle timeout callback (#46687)
This commit is contained in:
parent
971e27dd80
commit
efb172cedd
@ -141,6 +141,7 @@ class Stream:
|
||||
"""Reset access token and cleanup stream due to inactivity."""
|
||||
self.access_token = None
|
||||
if not self.keepalive:
|
||||
if self._hls:
|
||||
self._hls.cleanup()
|
||||
self._hls = None
|
||||
self._hls_timer = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user