diff --git a/core/src/common/network_abstraction_linux.c b/core/src/common/network_abstraction_linux.c index 55419e4..38d0f78 100644 --- a/core/src/common/network_abstraction_linux.c +++ b/core/src/common/network_abstraction_linux.c @@ -780,21 +780,11 @@ bool sendUDP(NetworkSocket * networkSocket, NetworkAddress * destAddress, const int lastError = errno; if (sentBytes == SOCKET_ERROR) { - if (lastError == EWOULDBLOCK) + if ((lastError == EWOULDBLOCK) || (lastError == EINTR)) { sentBytes = 0; } - else if (lastError == ENOTCONN) - { - networkSocket->LastError = NetworkSocketError_SendError; - break; - } - else if (lastError == ECONNRESET) - { - networkSocket->LastError = NetworkSocketError_SendError; - break; - } - else if (lastError == EBADF) + else { networkSocket->LastError = NetworkSocketError_SendError; break;