diff --git a/features/netsocket/PPPInterface.cpp b/features/netsocket/PPPInterface.cpp index 713f8f8b5a..816533f7b8 100644 --- a/features/netsocket/PPPInterface.cpp +++ b/features/netsocket/PPPInterface.cpp @@ -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()