Move a lock to attempt to cut down packet loss
parent
bdef6d71f1
commit
74ce07e971
|
@ -745,12 +745,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
// Assign sequence number here to prevent out of order packets
|
||||
if (packet.Header.Sequence == 0)
|
||||
{
|
||||
packet.Header.Sequence = NextPacketSequenceNumber();
|
||||
item.Sequence = packet.Header.Sequence;
|
||||
item.TickCount = Environment.TickCount;
|
||||
|
||||
lock (m_NeedAck)
|
||||
{
|
||||
packet.Header.Sequence = NextPacketSequenceNumber();
|
||||
item.Sequence = packet.Header.Sequence;
|
||||
item.TickCount = Environment.TickCount;
|
||||
|
||||
// We want to see that packet arrive if it's reliable
|
||||
if (packet.Header.Reliable)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue