From 5a5206449f575fa4c6e161aea7202b7b8f628b4a Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Wed, 31 Aug 2011 16:41:58 +0100 Subject: [PATCH] minor: seal up another instance of using the appearance list without locking --- .../Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs | 2 +- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs index 057500c5da..f25699b245 100644 --- a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs @@ -366,7 +366,7 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm break; } } - + return true; } diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index f5c72e13d7..e3b7c72419 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -3512,7 +3512,8 @@ namespace OpenSim.Region.Framework.Scenes public bool HasAttachments() { - return m_attachments.Count > 0; + lock (m_attachments) + return m_attachments.Count > 0; } public bool HasScriptedAttachments()