diff options
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) { |