Move a lock to attempt to cut down packet loss

0.6.5-rc1
Melanie Thielker 2009-05-02 14:47:01 +00:00
parent bdef6d71f1
commit 74ce07e971
1 changed files with 4 additions and 4 deletions

View File

@ -744,13 +744,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// Assign sequence number here to prevent out of order packets
if (packet.Header.Sequence == 0)
{
lock (m_NeedAck)
{
packet.Header.Sequence = NextPacketSequenceNumber();
item.Sequence = packet.Header.Sequence;
item.TickCount = Environment.TickCount;
lock (m_NeedAck)
{
// We want to see that packet arrive if it's reliable
if (packet.Header.Reliable)
{