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);