possible windows compiler fix

This commit is contained in:
Lion Kortlepel 2021-08-10 13:57:32 +02:00 committed by Lion
parent afb18ccff7
commit e92847e628
2 changed files with 1 additions and 2 deletions

View File

@ -22,7 +22,7 @@ inline void CloseSocketProper(int TheSocket) {
#ifdef WIN32 #ifdef WIN32
#include <conio.h> #include <conio.h>
#include <winsock2.h> #include <ws2def.h>
inline void CloseSocketProper(SOCKET TheSocket) { inline void CloseSocketProper(SOCKET TheSocket) {
shutdown(TheSocket, SD_BOTH); shutdown(TheSocket, SD_BOTH);
closesocket(TheSocket); closesocket(TheSocket);

View File

@ -51,7 +51,6 @@ void THeartbeatThread::operator()() {
}; };
SentryReportError(Application::GetBackendHostname() + Target); SentryReportError(Application::GetBackendHostname() + Target);
//Backend system refused server startup!
std::this_thread::sleep_for(std::chrono::milliseconds(500)); std::this_thread::sleep_for(std::chrono::milliseconds(500));
T = Http::POST(Application::GetBackup1Hostname(), Target, {}, Body, false); T = Http::POST(Application::GetBackup1Hostname(), Target, {}, Body, false);
if (T.substr(0, 2) != "20") { if (T.substr(0, 2) != "20") {