From 33096c2e54547a16d1bdbabfe88c0d17cc40eb39 Mon Sep 17 00:00:00 2001 From: Michal Paszta Date: Tue, 12 Nov 2019 18:33:30 +0200 Subject: [PATCH] Fix PPPInterface::disconnect to return NO_CONNECTION in case of failure --- features/netsocket/PPPInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()