mirror of https://github.com/ARMmbed/mbed-os.git
Fix PPPInterface::disconnect to return NO_CONNECTION in case of failure
parent
da5a8b2b65
commit
33096c2e54
|
@ -80,7 +80,7 @@ nsapi_error_t PPPInterface::disconnect()
|
||||||
if (_interface) {
|
if (_interface) {
|
||||||
return _interface->bringdown();
|
return _interface->bringdown();
|
||||||
}
|
}
|
||||||
return NSAPI_ERROR_OK;
|
return NSAPI_ERROR_NO_CONNECTION;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *PPPInterface::get_ip_address()
|
const char *PPPInterface::get_ip_address()
|
||||||
|
|
Loading…
Reference in New Issue