diff --git a/net/local/local_accept.c b/net/local/local_accept.c index e11d6872ec..151491da64 100644 --- a/net/local/local_accept.c +++ b/net/local/local_accept.c @@ -70,7 +70,7 @@ static int local_waitlisten(FAR struct local_conn_s *server) { /* No.. wait for a connection or a signal */ - ret = nxsem_wait(&server->lc_waitsem); + ret = net_lockedwait(&server->lc_waitsem); if (ret < 0) { DEBUGASSERT(ret == -EINTR || ret == -ECANCELED); diff --git a/net/local/local_connect.c b/net/local/local_connect.c index b254dae62a..e452f9b6f6 100644 --- a/net/local/local_connect.c +++ b/net/local/local_connect.c @@ -97,7 +97,7 @@ static inline void _local_semtake(sem_t *sem) { /* Take the semaphore (perhaps waiting) */ - ret = nxsem_wait(sem); + ret = net_lockedwait(sem); /* The only case that an error should occur here is if the wait was * awakened by a signal.