possible compiler fix by not using SD_BOTH

This commit is contained in:
Lion Kortlepel
2021-08-11 13:45:48 +02:00
committed by Lion
parent c7e0461a86
commit 5330013dc3

View File

@@ -21,10 +21,9 @@ inline void CloseSocketProper(int TheSocket) {
// ======================= WIN32 =======================
#ifdef WIN32
#include <sentry.h>
#include <ws2tcpip.h>
#include "TSentry.h"
inline void CloseSocketProper(SOCKET TheSocket) {
shutdown(TheSocket, SD_BOTH);
shutdown(TheSocket, 2); // 2 == SD_BOTH
closesocket(TheSocket);
}
#endif // WIN32