diff --git a/lib/framework/NTPSettingsService.cpp b/lib/framework/NTPSettingsService.cpp index 960a45228..751de6751 100644 --- a/lib/framework/NTPSettingsService.cpp +++ b/lib/framework/NTPSettingsService.cpp @@ -27,9 +27,11 @@ void NTPSettingsService::WiFiEvent(WiFiEvent_t event) { switch (event) { case ARDUINO_EVENT_WIFI_STA_DISCONNECTED: case ARDUINO_EVENT_ETH_DISCONNECTED: - emsesp::EMSESP::logger().info("WiFi connection dropped, stopping NTP"); - connected_ = false; - configureNTP(); + if (connected_) { + emsesp::EMSESP::logger().info("WiFi connection dropped, stopping NTP"); + connected_ = false; + configureNTP(); + } break; case ARDUINO_EVENT_WIFI_STA_GOT_IP: