aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs32
1 files changed, 16 insertions, 16 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
index f764405..8fe9a7b 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
@@ -240,7 +240,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
240 return; 240 return;
241 } 241 }
242 242
243 packet.Header.Sequence = 0; 243 packet.Header.Sequence = 0;
244 244
245 lock (m_NeedAck) 245 lock (m_NeedAck)
246 { 246 {
@@ -726,21 +726,21 @@ namespace OpenSim.Region.ClientStack.LindenUDP
726 packet.TickCount = System.Environment.TickCount; 726 packet.TickCount = System.Environment.TickCount;
727 727
728 // Assign sequence number here to prevent out of order packets 728 // Assign sequence number here to prevent out of order packets
729 if(packet.Header.Sequence == 0) 729 if (packet.Header.Sequence == 0)
730 { 730 {
731 packet.Header.Sequence = NextPacketSequenceNumber(); 731 packet.Header.Sequence = NextPacketSequenceNumber();
732 732
733 lock (m_NeedAck) 733 lock (m_NeedAck)
734 { 734 {
735 // We want to see that packet arrive if it's reliable 735 // We want to see that packet arrive if it's reliable
736 if (packet.Header.Reliable) 736 if (packet.Header.Reliable)
737 { 737 {
738 m_UnackedBytes += packet.ToBytes().Length; 738 m_UnackedBytes += packet.ToBytes().Length;
739 m_NeedAck[packet.Header.Sequence] = new AckData(packet, 739 m_NeedAck[packet.Header.Sequence] = new AckData(packet,
740 item.Identifier); 740 item.Identifier);
741 } 741 }
742 } 742 }
743 } 743 }
744 744
745 // Actually make the byte array and send it 745 // Actually make the byte array and send it
746 try 746 try