From cd4f9038eecd0cc7c314c84fdca3d4bcb1515c12 Mon Sep 17 00:00:00 2001 From: Edoardo Odorico Date: Wed, 11 Sep 2019 14:12:15 +0200 Subject: [PATCH] Fix WiFi disconnect event not being propageted. (#3085) 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 2218b89c..c972fe67 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) {