diff options
Diffstat (limited to 'core/network.c')
-rw-r--r-- | core/network.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/network.c b/core/network.c index 160db880..8804ab4e 100644 --- a/core/network.c +++ b/core/network.c | |||
@@ -156,7 +156,10 @@ int init_networking(IP ip, uint16_t port) | |||
156 | void shutdown_networking() | 156 | void shutdown_networking() |
157 | { | 157 | { |
158 | #ifdef WIN32 | 158 | #ifdef WIN32 |
159 | closesocket(sock); | ||
159 | WSACleanup(); | 160 | WSACleanup(); |
161 | #else | ||
162 | close(sock); | ||
160 | #endif | 163 | #endif |
161 | return; | 164 | return; |
162 | } | 165 | } |