possible crash fix for linux

windows fix coming if this works
This commit is contained in:
Lion Kortlepel 2021-03-30 14:07:53 +02:00
parent 229914ac74
commit 2d898f8665

View File

@ -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, 0);
int32_t Temp = send(c.GetTCPSock(), &Send[Sent], Size - Sent, MSG_NOSIGNAL);
if (Temp == 0) {
if (c.GetStatus() > -1)
c.SetStatus(-1);