mirror of
https://github.com/home-assistant/core.git
synced 2025-04-29 11:47:50 +00:00
Run websocket shutdown listener with run_immediately (#113727)
This commit is contained in:
parent
167e66d45c
commit
9be5f3531f
@ -292,7 +292,7 @@ class WebSocketHandler:
|
|||||||
self._handle_task = asyncio.current_task()
|
self._handle_task = asyncio.current_task()
|
||||||
|
|
||||||
unsub_stop = hass.bus.async_listen(
|
unsub_stop = hass.bus.async_listen(
|
||||||
EVENT_HOMEASSISTANT_STOP, self._async_handle_hass_stop
|
EVENT_HOMEASSISTANT_STOP, self._async_handle_hass_stop, run_immediately=True
|
||||||
)
|
)
|
||||||
|
|
||||||
writer = wsock._writer # pylint: disable=protected-access
|
writer = wsock._writer # pylint: disable=protected-access
|
||||||
|
Loading…
x
Reference in New Issue
Block a user