minor: seal up another instance of using the appearance list without locking

remove-scene-viewer
Justin Clark-Casey (justincc) 2011-08-31 16:41:58 +01:00
parent 32444d98cb
commit 5a5206449f
2 changed files with 3 additions and 2 deletions

View File

@ -366,7 +366,7 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm
break;
}
}
return true;
}

View File

@ -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()