From 5182357b690579a737e25d41ac321e0d7f2b9735 Mon Sep 17 00:00:00 2001 From: Edoardo Odorico Date: Mon, 12 Aug 2019 17:33:27 +0200 Subject: [PATCH] Fix WiFi disconnect event not being propageted. Relative to #3006 --- libraries/WiFi/src/WiFiGeneric.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/WiFi/src/WiFiGeneric.cpp b/libraries/WiFi/src/WiFiGeneric.cpp index 3fc99c97159..a82f735a1e3 100644 --- a/libraries/WiFi/src/WiFiGeneric.cpp +++ b/libraries/WiFi/src/WiFiGeneric.cpp @@ -367,7 +367,7 @@ esp_err_t WiFiGenericClass::_eventCallback(void *arg, system_event_t *event) (reason >= WIFI_REASON_BEACON_TIMEOUT && reason != WIFI_REASON_AUTH_FAIL)) && WiFi.getAutoReconnect()) { - WiFi.disconnect(true); + WiFi.disconnect(); WiFi.begin(); } } else if(event->event_id == SYSTEM_EVENT_STA_GOT_IP) {