move common code into AttachmentsModule.DeleteAttachmentsFromScene()

This commit is contained in:
Justin Clark-Casey (justincc)
2011-08-31 17:53:58 +01:00
parent 3aa86d22d1
commit 7d58b5fa15
6 changed files with 37 additions and 25 deletions

View File

@@ -3401,19 +3401,7 @@ namespace OpenSim.Region.Framework.Scenes
public void Close()
{
lock (m_attachments)
{
// Delete attachments from scene
// Don't try to save, as this thread won't live long
// enough to complete the save. This would cause no copy
// attachments to poof!
//
foreach (SceneObjectGroup grp in m_attachments)
{
m_scene.DeleteSceneObject(grp, false);
}
m_attachments.Clear();
}
m_scene.AttachmentsModule.DeleteAttachmentsFromScene(this, false);
lock (m_knownChildRegions)
{