summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-01-05 01:23:03 +0000
committerrubidium <rubidium@openttd.org>2007-01-05 01:23:03 +0000
commit7b8032d6d4652b89adb440a5d778a77d4ceea2d7 (patch)
tree6f300d756c5390f35ca88c81eb71da1558c444da /src/network
parent8f945f53e20b5966a8c8fa1944859587ccb393ab (diff)
downloadopenttd-7b8032d6d4652b89adb440a5d778a77d4ceea2d7.tar.xz
(svn r7847) -Codechange: use NetworkUDPClose instead of calling closesocket directly.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/core/udp.c2
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) {