Perform disconnection regardless of the IP address

pull/10469/head
Michal Paszta 2019-04-11 14:42:47 +03:00 committed by adbridge
parent 5118cdf887
commit b3ef3db637
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,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;
}