summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/core/udp.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/core/udp.cpp b/src/network/core/udp.cpp
index d58184489..a2959eb9a 100644
--- a/src/network/core/udp.cpp
+++ b/src/network/core/udp.cpp
@@ -110,6 +110,7 @@ void NetworkUDPSocketHandler::ReceivePackets()
client_len = sizeof(client_addr);
/* Try to receive anything */
+ SetNonBlocking(this->sock); // Some OSes seem to loose the non-blocking status of the socket
nbytes = recvfrom(this->sock, (char*)p.buffer, packet_len, 0, (struct sockaddr *)&client_addr, &client_len);
/* We got some bytes for the base header of the packet. */