Skip to content

Commit 8eda11a

Browse files
Perform disconnection regardless of the IP address
1 parent 2641fb3 commit 8eda11a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/wifi/esp8266-driver/ESP8266Interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ int ESP8266Interface::disconnect()
315315
_initialized = false;
316316

317317
nsapi_error_t status = _conn_status_to_error();
318-
if (status == NSAPI_ERROR_NO_CONNECTION || !get_ip_address()) {
318+
if (status == NSAPI_ERROR_NO_CONNECTION) {
319319
return NSAPI_ERROR_NO_CONNECTION;
320320
}
321321

0 commit comments

Comments
 (0)