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 549427bf..ec234593 100644
--- a/core/network.c
+++ b/core/network.c
@@ -159,7 +159,10 @@ int init_networking(IP ip, uint16_t port)
159void shutdown_networking() 159void shutdown_networking()
160{ 160{
161 #ifdef WIN32 161 #ifdef WIN32
162 closesocket(sock);
162 WSACleanup(); 163 WSACleanup();
164 #else
165 close(sock);
163 #endif 166 #endif
164 return; 167 return;
165} 168}