(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 8f945f53e2
commit 7b8032d6d4
1 changed files with 1 additions and 1 deletions

View File

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