(svn r7847) -Codechange: use NetworkUDPClose instead of calling closesocket directly.

This commit is contained in:
rubidium 2007-01-05 01:23:03 +00:00
parent 6f568a4d9c
commit 5e4c157282

View File

@ -25,7 +25,7 @@ bool NetworkUDPListen(SOCKET *udp, const uint32 host, const uint16 port, const b
struct sockaddr_in sin; struct sockaddr_in sin;
/* Make sure socket is closed */ /* Make sure socket is closed */
closesocket(*udp); NetworkUDPClose(udp);
*udp = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); *udp = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
if (*udp == INVALID_SOCKET) { if (*udp == INVALID_SOCKET) {