mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r7847) -Codechange: use NetworkUDPClose instead of calling closesocket directly.
This commit is contained in:
parent
8f945f53e2
commit
7b8032d6d4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user