diff --git a/src/libAtomVM/otp_socket.c b/src/libAtomVM/otp_socket.c index b3c3dcf24..a820bdc95 100644 --- a/src/libAtomVM/otp_socket.c +++ b/src/libAtomVM/otp_socket.c @@ -1910,9 +1910,7 @@ static ssize_t do_socket_recv(struct SocketResource *rsrc_obj, uint8_t *buf, siz ssize_t socket_recv(struct SocketResource *rsrc_obj, uint8_t *buf, size_t len, int flags, term *from, Heap *heap) { - SMP_RWLOCK_RDLOCK(rsrc_obj->socket_lock); ssize_t result = do_socket_recv(rsrc_obj, buf, len, flags, from, heap); - SMP_RWLOCK_UNLOCK(rsrc_obj->socket_lock); return result; }