diff options
author | rubidium <rubidium@openttd.org> | 2007-01-05 01:23:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-01-05 01:23:03 +0000 |
commit | 5e4c157282b10f9880e98b8cf2d9f11d086e9239 (patch) | |
tree | 6f300d756c5390f35ca88c81eb71da1558c444da /src | |
parent | 6f568a4d9c61fc0542e7c02b0bd95b729fd7a97d (diff) | |
download | openttd-5e4c157282b10f9880e98b8cf2d9f11d086e9239.tar.xz |
(svn r7847) -Codechange: use NetworkUDPClose instead of calling closesocket directly.
Diffstat (limited to 'src')
-rw-r--r-- | src/network/core/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/udp.c b/src/network/core/udp.c index 72d600157..3e23ca962 100644 --- a/src/network/core/udp.c +++ b/src/network/core/udp.c @@ -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) { |