From dbaaccf92af588eaa07be7e97057decf79f0668e Mon Sep 17 00:00:00 2001 From: Melanie Date: Wed, 29 Dec 2010 21:02:45 +0100 Subject: Copying a ref type under lock doesn't dissociate it from the source. Use a new list to do that. --- OpenSim/Region/Framework/Scenes/Scene.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index deeb817..a90caa9 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -1428,9 +1428,9 @@ namespace OpenSim.Region.Framework.Scenes private void CheckAtTargets() { - Dictionary.ValueCollection objs; + List objs = new List(); lock (m_groupsWithTargets) - objs = m_groupsWithTargets.Values; + objs = new List(m_groupsWithTargets.Values); foreach (SceneObjectGroup entry in objs) entry.checkAtTargets(); -- cgit v1.1