summaryrefslogtreecommitdiff
path: root/core/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/network.c')
-rw-r--r--core/network.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/network.c b/core/network.c
index bc6738ac..d4e25c82 100644
--- a/core/network.c
+++ b/core/network.c
@@ -166,7 +166,10 @@ int init_networking(IP ip ,uint16_t port)
166void shutdown_networking() 166void shutdown_networking()
167{ 167{
168 #ifdef WIN32 168 #ifdef WIN32
169 closesocket(sock);
169 WSACleanup(); 170 WSACleanup();
171 #else
172 close(sock);
170 #endif 173 #endif
171 return; 174 return;
172} 175}