mirror of https://github.com/ARMmbed/mbed-os.git
InternetSocket: Fixed missing unlock before return
parent
cb4924151e
commit
dcb97f9f74
|
@ -62,6 +62,7 @@ nsapi_error_t InternetSocket::close()
|
|||
|
||||
nsapi_error_t ret = NSAPI_ERROR_OK;
|
||||
if (!_socket) {
|
||||
_lock.unlock();
|
||||
return NSAPI_ERROR_NO_SOCKET;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue