1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-20 09:38:18 +00:00

fix: missing if

This commit is contained in:
J. Nick Koston 2023-11-13 18:27:49 -06:00
parent a480f910fa
commit c0251c2e68
No known key found for this signature in database

View File

@ -1588,7 +1588,8 @@ async def async_start_web_server(args):
if ping_status_thread:
ping_status_thread.join()
MDNS_CONTAINER.set_mdns(None)
mdns_task.cancel()
if mdns_task:
mdns_task.cancel()
if settings.status_use_mqtt:
status_thread_mqtt.join()
MQTT_PING_REQUEST.set()