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