From 8eda11a5a30817463b2250dd062adbe7a4ec2a11 Mon Sep 17 00:00:00 2001 From: Michal Paszta Date: Thu, 11 Apr 2019 14:42:47 +0300 Subject: [PATCH] Perform disconnection regardless of the IP address --- components/wifi/esp8266-driver/ESP8266Interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/wifi/esp8266-driver/ESP8266Interface.cpp b/components/wifi/esp8266-driver/ESP8266Interface.cpp index 9fc7fe1043..f976b3a49e 100644 --- a/components/wifi/esp8266-driver/ESP8266Interface.cpp +++ b/components/wifi/esp8266-driver/ESP8266Interface.cpp @@ -315,7 +315,7 @@ int ESP8266Interface::disconnect() _initialized = false; nsapi_error_t status = _conn_status_to_error(); - if (status == NSAPI_ERROR_NO_CONNECTION || !get_ip_address()) { + if (status == NSAPI_ERROR_NO_CONNECTION) { return NSAPI_ERROR_NO_CONNECTION; }