Don't try and delete attachments for child agent close

This commit is contained in:
Justin Clark-Casey (justincc)
2011-09-13 22:54:50 +01:00
parent 1084d8f6a2
commit bd991fc95f
2 changed files with 34 additions and 1 deletions

View File

@@ -3404,7 +3404,8 @@ namespace OpenSim.Region.Framework.Scenes
public void Close()
{
m_scene.AttachmentsModule.DeleteAttachmentsFromScene(this, false);
if (!IsChildAgent)
m_scene.AttachmentsModule.DeleteAttachmentsFromScene(this, false);
lock (m_knownChildRegions)
{