mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Handle resends better
This commit is contained in:
@@ -311,7 +311,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
|
||||
// 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)
|
||||
{
|
||||
|
||||
@@ -251,6 +251,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
;
|
||||
}
|
||||
|
||||
public bool Contains(uint sequence)
|
||||
{
|
||||
return contents.Contains(sequence);
|
||||
}
|
||||
|
||||
public void Flush()
|
||||
{
|
||||
lock (this)
|
||||
|
||||
Reference in New Issue
Block a user