diff --git a/src/add-ons/kernel/network/protocols/unix/UnixEndpoint.cpp b/src/add-ons/kernel/network/protocols/unix/UnixEndpoint.cpp index a53e9a741e..745a0197f6 100644 --- a/src/add-ons/kernel/network/protocols/unix/UnixEndpoint.cpp +++ b/src/add-ons/kernel/network/protocols/unix/UnixEndpoint.cpp @@ -419,7 +419,7 @@ UnixEndpoint::Accept(net_socket **_acceptedSocket) error = acquire_sem_etc(fAcceptSemaphore, 1, B_ABSOLUTE_TIMEOUT | B_CAN_INTERRUPT, timeout); if (error < B_OK) - RETURN_ERROR(error); + break; locker.Lock(); error = gSocketModule->dequeue_connected(socket, _acceptedSocket);