diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/InnerScene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/InnerScene.cs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs index 3e250da..b6ba706 100644 --- a/OpenSim/Region/Environment/Scenes/InnerScene.cs +++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs | |||
@@ -627,19 +627,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
627 | #region Get Methods | 627 | #region Get Methods |
628 | 628 | ||
629 | /// <summary> | 629 | /// <summary> |
630 | /// Request a List of all m_scenePresences in this World | 630 | /// Request a List of all scene presences in this scene. This returns a copy of the original list, so no |
631 | /// locking is required to iterate over it. | ||
631 | /// </summary> | 632 | /// </summary> |
632 | /// <returns></returns> | 633 | /// <returns></returns> |
633 | protected internal List<ScenePresence> GetScenePresences() | 634 | protected internal List<ScenePresence> GetScenePresences() |
634 | { | 635 | { |
635 | List<ScenePresence> result; | 636 | return new List<ScenePresence>(ScenePresences.Values); |
636 | |||
637 | lock (ScenePresences) | ||
638 | { | ||
639 | result = new List<ScenePresence>(ScenePresences.Values); | ||
640 | } | ||
641 | |||
642 | return result; | ||
643 | } | 637 | } |
644 | 638 | ||
645 | protected internal List<ScenePresence> GetAvatars() | 639 | protected internal List<ScenePresence> GetAvatars() |