Fix PPPInterface::disconnect to return NO_CONNECTION in case of failure

pull/11878/head
Michal Paszta 2019-11-12 18:33:30 +02:00
parent da5a8b2b65
commit 33096c2e54
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ nsapi_error_t PPPInterface::disconnect()
if (_interface) {
return _interface->bringdown();
}
return NSAPI_ERROR_OK;
return NSAPI_ERROR_NO_CONNECTION;
}
const char *PPPInterface::get_ip_address()