Skip to content

Commit dcb97f9

Browse files
author
Marc Emmers
committed
InternetSocket: Fixed missing unlock before return
1 parent cb49241 commit dcb97f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/netsocket/InternetSocket.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ nsapi_error_t InternetSocket::close()
6262

6363
nsapi_error_t ret = NSAPI_ERROR_OK;
6464
if (!_socket) {
65+
_lock.unlock();
6566
return NSAPI_ERROR_NO_SOCKET;
6667
}
6768

0 commit comments

Comments
 (0)