mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-17 14:12:25 +00:00
revert changes, they didn't fix it
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ std::string GetDate() {
|
|||||||
<< " ";
|
<< " ";
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
return std::string(date.str());
|
return date.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
TConsole::TConsole() {
|
TConsole::TConsole() {
|
||||||
|
|||||||
+1
-1
@@ -358,7 +358,7 @@ bool TNetwork::TCPSend(TClient& c, const std::string& Data, bool IsSync) {
|
|||||||
Sent = 0;
|
Sent = 0;
|
||||||
Size += 4;
|
Size += 4;
|
||||||
do {
|
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 (Temp == 0) {
|
||||||
if (c.GetStatus() > -1)
|
if (c.GetStatus() > -1)
|
||||||
c.SetStatus(-1);
|
c.SetStatus(-1);
|
||||||
|
|||||||
Reference in New Issue
Block a user