From 74ce07e97195fd268e5edbbc2ca2c17bf73f8e07 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 2 May 2009 14:47:01 +0000 Subject: Move a lock to attempt to cut down packet loss --- OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs index 6229237..d4377ad 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs @@ -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) { -- cgit v1.1