diff options
author | UbitUmarov | 2019-01-20 20:58:27 +0000 |
---|---|---|
committer | UbitUmarov | 2019-01-20 20:58:27 +0000 |
commit | 0c38d52538a5d713e034fcec8da8df434e3ca924 (patch) | |
tree | b54bb1749bae275e77bbfcaafb98833fd436748b /OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | |
parent | cosmetics (diff) | |
download | opensim-SC-0c38d52538a5d713e034fcec8da8df434e3ca924.zip opensim-SC-0c38d52538a5d713e034fcec8da8df434e3ca924.tar.gz opensim-SC-0c38d52538a5d713e034fcec8da8df434e3ca924.tar.bz2 opensim-SC-0c38d52538a5d713e034fcec8da8df434e3ca924.tar.xz |
cosmetics on terrain patchs
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs index 5f35782..35d29a5 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | |||
@@ -866,21 +866,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
866 | m_log.Error("[LLUDPSERVER]: Failed to split " + packet.Type + " with estimated length " + packet.Length); | 866 | m_log.Error("[LLUDPSERVER]: Failed to split " + packet.Type + " with estimated length " + packet.Length); |
867 | 867 | ||
868 | for (int i = 0; i < packetCount; i++) | 868 | for (int i = 0; i < packetCount; i++) |
869 | { | 869 | SendPacketData(udpClient, datas[i], packet.Type, category, method); |
870 | byte[] data = datas[i]; | ||
871 | // if (!SendPacketData(udpClient, data, packet.Type, category, method)) | ||
872 | // packetQueued = true; | ||
873 | SendPacketData(udpClient, data, packet.Type, category, method); | ||
874 | } | ||
875 | } | 870 | } |
876 | else | 871 | else |
877 | { | 872 | { |
878 | byte[] data = packet.ToBytes(); | 873 | byte[] data = packet.ToBytes(); |
879 | // if (!SendPacketData(udpClient, data, packet.Type, category, method)) | ||
880 | // packetQueued = true; | ||
881 | SendPacketData(udpClient, data, packet.Type, category, method); | 874 | SendPacketData(udpClient, data, packet.Type, category, method); |
882 | } | 875 | } |
883 | |||
884 | PacketPool.Instance.ReturnPacket(packet); | 876 | PacketPool.Instance.ReturnPacket(packet); |
885 | } | 877 | } |
886 | 878 | ||
@@ -908,7 +900,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
908 | if (zerocount != 0) | 900 | if (zerocount != 0) |
909 | { | 901 | { |
910 | dest[zerolen++] = 0x00; | 902 | dest[zerolen++] = 0x00; |
911 | dest[zerolen++] = (byte)zerocount; | 903 | dest[zerolen++] = zerocount; |
912 | zerocount = 0; | 904 | zerocount = 0; |
913 | } | 905 | } |
914 | 906 | ||
@@ -919,10 +911,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
919 | if (zerocount != 0) | 911 | if (zerocount != 0) |
920 | { | 912 | { |
921 | dest[zerolen++] = 0x00; | 913 | dest[zerolen++] = 0x00; |
922 | dest[zerolen++] = (byte)zerocount; | 914 | dest[zerolen++] = zerocount; |
923 | } | 915 | } |
924 | 916 | ||
925 | return (int)zerolen; | 917 | return zerolen; |
926 | } | 918 | } |
927 | /// <summary> | 919 | /// <summary> |
928 | /// Start the process of sending a packet to the client. | 920 | /// Start the process of sending a packet to the client. |