summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
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) {