aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
diff options
context:
space:
mode:
authorMelanie2012-10-17 23:50:48 +0100
committerMelanie2012-10-17 23:50:48 +0100
commit9b684468113cf4933816adae3a53d8ac6d94b173 (patch)
treeea622759f04cd81746b597398f6c66a4f219ea87 /OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
parentMerge branch 'avination' into careminster (diff)
parentExplicitly return only the incoming AgentUpdate packet as this is the only on... (diff)
downloadopensim-SC_OLD-9b684468113cf4933816adae3a53d8ac6d94b173.zip
opensim-SC_OLD-9b684468113cf4933816adae3a53d8ac6d94b173.tar.gz
opensim-SC_OLD-9b684468113cf4933816adae3a53d8ac6d94b173.tar.bz2
opensim-SC_OLD-9b684468113cf4933816adae3a53d8ac6d94b173.tar.xz
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 7686b94..78f5ac9 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -5522,16 +5522,19 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5522 5522
5523 #region Scene/Avatar 5523 #region Scene/Avatar
5524 5524
5525 private bool HandleAgentUpdate(IClientAPI sener, Packet Pack) 5525 private bool HandleAgentUpdate(IClientAPI sener, Packet packet)
5526 { 5526 {
5527 if (OnAgentUpdate != null) 5527 if (OnAgentUpdate != null)
5528 { 5528 {
5529 bool update = false; 5529 bool update = false;
5530 AgentUpdatePacket agenUpdate = (AgentUpdatePacket)Pack; 5530 AgentUpdatePacket agenUpdate = (AgentUpdatePacket)packet;
5531 5531
5532 #region Packet Session and User Check 5532 #region Packet Session and User Check
5533 if (agenUpdate.AgentData.SessionID != SessionId || agenUpdate.AgentData.AgentID != AgentId) 5533 if (agenUpdate.AgentData.SessionID != SessionId || agenUpdate.AgentData.AgentID != AgentId)
5534 {
5535 PacketPool.Instance.ReturnPacket(packet);
5534 return false; 5536 return false;
5537 }
5535 #endregion 5538 #endregion
5536 5539
5537 AgentUpdatePacket.AgentDataBlock x = agenUpdate.AgentData; 5540 AgentUpdatePacket.AgentDataBlock x = agenUpdate.AgentData;
@@ -5597,6 +5600,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5597 } 5600 }
5598 } 5601 }
5599 5602
5603 PacketPool.Instance.ReturnPacket(packet);
5604
5600 return true; 5605 return true;
5601 } 5606 }
5602 5607
@@ -12041,8 +12046,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
12041 12046
12042 if (!ProcessPacketMethod(packet)) 12047 if (!ProcessPacketMethod(packet))
12043 m_log.Warn("[CLIENT]: unhandled packet " + packet.Type); 12048 m_log.Warn("[CLIENT]: unhandled packet " + packet.Type);
12044
12045 PacketPool.Instance.ReturnPacket(packet);
12046 } 12049 }
12047 12050
12048 private static PrimitiveBaseShape GetShapeFromAddPacket(ObjectAddPacket addPacket) 12051 private static PrimitiveBaseShape GetShapeFromAddPacket(ObjectAddPacket addPacket)