Deep copy the collection of at_target objects so it can't be modified while

it's being iterated
avinationmerge
Melanie 2012-10-28 18:41:47 +00:00
parent 453192d721
commit 0d00b97aec
1 changed files with 4 additions and 1 deletions

View File

@ -1666,7 +1666,10 @@ namespace OpenSim.Region.Framework.Scenes
{
List<SceneObjectGroup> objs = new List<SceneObjectGroup>();
lock (m_groupsWithTargets)
objs = new List<SceneObjectGroup>(m_groupsWithTargets.Values);
{
foreach (SceneObjectGroup grp in m_groupsWithTargets.Values)
objs.Add(grp);
}
foreach (SceneObjectGroup entry in objs)
entry.checkAtTargets();