Teravus Ovares 2008-01-16 06:04:33 +00:00
parent 5dd741267e
commit 29c869fd33
1 changed files with 13 additions and 2 deletions

View File

@ -2372,10 +2372,21 @@ namespace OpenSim.Region.ClientStack
lock (m_needAck)
{
foreach (PacketAckPacket.PacketsBlock block in ackPacket.Packets)
{
if (m_needAck.ContainsKey(block.ID))
{
try
{
m_unAckedBytes -= m_needAck[block.ID].ToBytes().Length;
m_needAck.Remove(block.ID);
}
catch (System.Collections.Generic.KeyNotFoundException)
{
// Did another packet come in with the ack already?
// apparently so!
}
}
}
}
}
else if ((NewPack.Type == PacketType.StartPingCheck))