Skip to content

Commit 61d0ac8

Browse files
Fix PPPInterface::disconnect to return NO_CONNECTION in case of failure
1 parent 2bde658 commit 61d0ac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/netsocket/PPPInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ nsapi_error_t PPPInterface::disconnect()
8080
if (_interface) {
8181
return _interface->bringdown();
8282
}
83-
return NSAPI_ERROR_OK;
83+
return NSAPI_ERROR_NO_CONNECTION;
8484
}
8585

8686
const char *PPPInterface::get_ip_address()

0 commit comments

Comments
 (0)