aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
authorMelanie Thielker2009-05-02 14:47:01 +0000
committerMelanie Thielker2009-05-02 14:47:01 +0000
commit74ce07e97195fd268e5edbbc2ca2c17bf73f8e07 (patch)
treed2d17ce80a1ea08263401d9302d5d491eff9b31f /OpenSim/Region/ClientStack
parentChange of word in log message. (diff)
downloadopensim-SC_OLD-74ce07e97195fd268e5edbbc2ca2c17bf73f8e07.zip
opensim-SC_OLD-74ce07e97195fd268e5edbbc2ca2c17bf73f8e07.tar.gz
opensim-SC_OLD-74ce07e97195fd268e5edbbc2ca2c17bf73f8e07.tar.bz2
opensim-SC_OLD-74ce07e97195fd268e5edbbc2ca2c17bf73f8e07.tar.xz
Move a lock to attempt to cut down packet loss
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs8
1 files changed, 4 insertions, 4 deletions
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
745 // Assign sequence number here to prevent out of order packets 745 // Assign sequence number here to prevent out of order packets
746 if (packet.Header.Sequence == 0) 746 if (packet.Header.Sequence == 0)
747 { 747 {
748 packet.Header.Sequence = NextPacketSequenceNumber();
749 item.Sequence = packet.Header.Sequence;
750 item.TickCount = Environment.TickCount;
751
752 lock (m_NeedAck) 748 lock (m_NeedAck)
753 { 749 {
750 packet.Header.Sequence = NextPacketSequenceNumber();
751 item.Sequence = packet.Header.Sequence;
752 item.TickCount = Environment.TickCount;
753
754 // We want to see that packet arrive if it's reliable 754 // We want to see that packet arrive if it's reliable
755 if (packet.Header.Reliable) 755 if (packet.Header.Reliable)
756 { 756 {