mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r7847) -Codechange: use NetworkUDPClose instead of calling closesocket directly.
This commit is contained in:
parent
6f568a4d9c
commit
5e4c157282
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user