Fix freezes on incomplete packet transmission

This commit is contained in:
Matt committed 2020-08-12 18:11:09 +02:00
1 parent e464c9e522
commit ebc2be4cd0
1 file changed
+4 -1
+4 -1
View File
@@ -1721,8 +1721,10 @@ bool NetworkBase::ProcessConnection(NetworkConnection& connection)
// could not read anything from socket
break;
}
} while (packetStatus == NETWORK_READPACKET_MORE_DATA || packetStatus == NETWORK_READPACKET_SUCCESS);
} while (packetStatus == NETWORK_READPACKET_SUCCESS);
connection.SendQueuedPackets();
if (!connection.ReceivedPacketRecently())
{
if (!connection.GetLastDisconnectReason())
@@ -1731,6 +1733,7 @@ bool NetworkBase::ProcessConnection(NetworkConnection& connection)
}
return false;
}
return true;
}