diff options
author | Jeff Ames | 2008-08-12 00:08:41 +0000 |
---|---|---|
committer | Jeff Ames | 2008-08-12 00:08:41 +0000 |
commit | f894f5d87b7f267e56436e687d0285f890a15b60 (patch) | |
tree | 8595e411bb0838fa339f3a16cc6a67ad966395c5 /OpenSim/Region/ClientStack/LindenUDP | |
parent | Patch #9163 - Refactor initial packet sending out of InnerScene into (diff) | |
download | opensim-SC-f894f5d87b7f267e56436e687d0285f890a15b60.zip opensim-SC-f894f5d87b7f267e56436e687d0285f890a15b60.tar.gz opensim-SC-f894f5d87b7f267e56436e687d0285f890a15b60.tar.bz2 opensim-SC-f894f5d87b7f267e56436e687d0285f890a15b60.tar.xz |
Minor formatting cleanup.
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs | 32 |
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 |