mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-03 04:43:12 +00:00
(svn r10729) -Fix: some hardware (PS(P|3)) seems to loose the non-blocking state of UDP sockets.
This commit is contained in:
parent
d17ae2f363
commit
809238e634
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user