From c7cf0a733eca19dbe9bc9ce1ba54e9c6849f7173 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Tue, 30 Mar 2021 14:32:56 +0200 Subject: [PATCH] revert changes, they didn't fix it --- src/TConsole.cpp | 2 +- src/TNetwork.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TConsole.cpp b/src/TConsole.cpp index 14bed1a..b3742fd 100644 --- a/src/TConsole.cpp +++ b/src/TConsole.cpp @@ -36,7 +36,7 @@ std::string GetDate() { << " "; } */ - return std::string(date.str()); + return date.str(); } TConsole::TConsole() { diff --git a/src/TNetwork.cpp b/src/TNetwork.cpp index af53208..4bcd1c8 100644 --- a/src/TNetwork.cpp +++ b/src/TNetwork.cpp @@ -358,7 +358,7 @@ bool TNetwork::TCPSend(TClient& c, const std::string& Data, bool IsSync) { Sent = 0; Size += 4; do { - int32_t Temp = send(c.GetTCPSock(), &Send[Sent], Size - Sent, MSG_NOSIGNAL); + int32_t Temp = send(c.GetTCPSock(), &Send[Sent], Size - Sent, 0); if (Temp == 0) { if (c.GetStatus() > -1) c.SetStatus(-1);