diff --git a/src/utils/socket.h b/src/utils/socket.h index 156f455a0..ac3e96665 100644 --- a/src/utils/socket.h +++ b/src/utils/socket.h @@ -125,7 +125,9 @@ class TCPSocket { * \brief shutdown the socket module after use, all sockets need to be closed */ inline static void Finalize(void) { +#ifdef _WIN32 WSACleanup(); +#endif } /*! * \brief set this socket to use non-blocking mode