Handle resends better

0.6.5-rc1
Melanie Thielker 2009-05-02 20:08:26 +00:00
parent 0b2a34438c
commit 780f34275b
2 changed files with 6 additions and 1 deletions

View File

@ -311,7 +311,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// Packets this old get resent // Packets this old get resent
// //
if ((now - data.TickCount) > m_ResendTimeout && data.Sequence != 0) if ((now - data.TickCount) > m_ResendTimeout && data.Sequence != 0 && !m_PacketQueue.Contains(data.Sequence))
{ {
if (resent < 20) if (resent < 20)
{ {

View File

@ -251,6 +251,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
; ;
} }
public bool Contains(uint sequence)
{
return contents.Contains(sequence);
}
public void Flush() public void Flush()
{ {
lock (this) lock (this)