Run websocket shutdown listener with run_immediately (#113727)
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…
Reference in New Issue