mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-09-27 04:22:46 +02:00
Call handle_stop regardless
This commit is contained in:
parent
a6f174c592
commit
f4060410ad
@ -1284,7 +1284,7 @@ class APIClient:
|
|||||||
start_task.add_done_callback(_started)
|
start_task.add_done_callback(_started)
|
||||||
# We hold a reference to the start_task in unsub function
|
# We hold a reference to the start_task in unsub function
|
||||||
# so we don't need to add it to the background tasks.
|
# so we don't need to add it to the background tasks.
|
||||||
elif handle_audio is None:
|
else:
|
||||||
self._create_background_task(handle_stop())
|
self._create_background_task(handle_stop())
|
||||||
|
|
||||||
remove_callbacks = []
|
remove_callbacks = []
|
||||||
|
Loading…
Reference in New Issue
Block a user