branch | noai |
changeset 9694 | e72987579514 |
parent 6447 | 3b71e57fd22b |
child 6871 | 5a9dc001e1ad |
child 8418 | b49fc6be1ab9 |
--- a/src/network/core/udp.cpp Fri Aug 03 19:16:36 2007 +0000 +++ b/src/network/core/udp.cpp Fri Aug 03 22:09:42 2007 +0000 @@ -110,6 +110,7 @@ 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. */