From 5cca6e7d16ee4dbfd23a0adcb50221e3e3051259 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 1 Nov 2014 00:01:11 +0000 Subject: [PATCH] don't send updates for deleted agents --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index da30a04ab9..4b15e9fbc7 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -3832,8 +3832,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP /// The original update time is used for the merged update. /// private void ResendPrimUpdate(EntityUpdate update) - { - // If the update exists in priority queue, it will be updated. + { + // If the update exists in priority queue, it will be updated. // If it does not exist then it will be added with the current (rather than its original) priority uint priority = m_prioritizer.GetUpdatePriority(this, update.Entity); @@ -3975,7 +3975,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP else if (update.Entity is ScenePresence) { ScenePresence presence = (ScenePresence)update.Entity; - + if (presence.IsDeleted) + continue; // If ParentUUID is not UUID.Zero and ParentID is 0, this // avatar is in the process of crossing regions while // sat on an object. In this state, we don't want any