InternetSocket: Fixed missing unlock before return

pull/8654/head
Marc Emmers 2018-11-06 15:02:42 +01:00
parent cb4924151e
commit dcb97f9f74
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}