aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
authorUbitUmarov2018-01-20 12:11:07 +0000
committerUbitUmarov2018-01-20 12:11:07 +0000
commit49b4408782ddb598fbbc105665b2af4080c33a50 (patch)
treee8b83cea3271cb71d139d1babd51cb303ee6213e /OpenSim/Region/ClientStack
parentimprove LLSDHelpers DeserialiseOSDMap (diff)
downloadopensim-SC-49b4408782ddb598fbbc105665b2af4080c33a50.zip
opensim-SC-49b4408782ddb598fbbc105665b2af4080c33a50.tar.gz
opensim-SC-49b4408782ddb598fbbc105665b2af4080c33a50.tar.bz2
opensim-SC-49b4408782ddb598fbbc105665b2af4080c33a50.tar.xz
some cleanup
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
index b575ed9..72b6116 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
@@ -898,7 +898,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
898 if (packet.Type == PacketType.CoarseLocationUpdate && allowSplitting) 898 if (packet.Type == PacketType.CoarseLocationUpdate && allowSplitting)
899 allowSplitting = false; 899 allowSplitting = false;
900 900
901 bool packetQueued = false; 901// bool packetQueued = false;
902 902
903 if (allowSplitting && packet.HasVariableBlocks) 903 if (allowSplitting && packet.HasVariableBlocks)
904 { 904 {
@@ -911,15 +911,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
911 for (int i = 0; i < packetCount; i++) 911 for (int i = 0; i < packetCount; i++)
912 { 912 {
913 byte[] data = datas[i]; 913 byte[] data = datas[i];
914 if (!SendPacketData(udpClient, data, packet.Type, category, method)) 914// if (!SendPacketData(udpClient, data, packet.Type, category, method))
915 packetQueued = true; 915// packetQueued = true;
916 SendPacketData(udpClient, data, packet.Type, category, method);
916 } 917 }
917 } 918 }
918 else 919 else
919 { 920 {
920 byte[] data = packet.ToBytes(); 921 byte[] data = packet.ToBytes();
921 if (!SendPacketData(udpClient, data, packet.Type, category, method)) 922// if (!SendPacketData(udpClient, data, packet.Type, category, method))
922 packetQueued = true; 923// packetQueued = true;
924 SendPacketData(udpClient, data, packet.Type, category, method);
923 } 925 }
924 926
925 PacketPool.Instance.ReturnPacket(packet); 927 PacketPool.Instance.ReturnPacket(packet);