mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-17 14:12:25 +00:00
possible compiler fix by not using SD_BOTH
This commit is contained in:
+2
-3
@@ -21,10 +21,9 @@ inline void CloseSocketProper(int TheSocket) {
|
|||||||
// ======================= WIN32 =======================
|
// ======================= WIN32 =======================
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <sentry.h>
|
#include "TSentry.h"
|
||||||
#include <ws2tcpip.h>
|
|
||||||
inline void CloseSocketProper(SOCKET TheSocket) {
|
inline void CloseSocketProper(SOCKET TheSocket) {
|
||||||
shutdown(TheSocket, SD_BOTH);
|
shutdown(TheSocket, 2); // 2 == SD_BOTH
|
||||||
closesocket(TheSocket);
|
closesocket(TheSocket);
|
||||||
}
|
}
|
||||||
#endif // WIN32
|
#endif // WIN32
|
||||||
|
|||||||
Reference in New Issue
Block a user