Call the cleanup after saving attachment states, so that the attachments

don't get killed before they can be saved
avinationmerge
Melanie Thielker 2010-08-24 19:07:42 +02:00
parent 512a13dbe7
commit 4e324ae3cb
1 changed files with 3 additions and 1 deletions

View File

@ -3199,7 +3199,6 @@ namespace OpenSim.Region.Framework.Scenes
m_log.Debug("[Scene] Beginning ClientClosed"); m_log.Debug("[Scene] Beginning ClientClosed");
m_eventManager.TriggerClientClosed(agentID, this); m_eventManager.TriggerClientClosed(agentID, this);
m_log.Debug("[Scene] Finished ClientClosed"); m_log.Debug("[Scene] Finished ClientClosed");
CleanDroppedAttachments();
} }
catch (NullReferenceException) catch (NullReferenceException)
{ {
@ -3210,6 +3209,9 @@ namespace OpenSim.Region.Framework.Scenes
m_log.Debug("[Scene] Beginning OnRemovePresence"); m_log.Debug("[Scene] Beginning OnRemovePresence");
m_eventManager.TriggerOnRemovePresence(agentID); m_eventManager.TriggerOnRemovePresence(agentID);
m_log.Debug("[Scene] Finished OnRemovePresence"); m_log.Debug("[Scene] Finished OnRemovePresence");
CleanDroppedAttachments();
ForEachClient( ForEachClient(
delegate(IClientAPI client) delegate(IClientAPI client)
{ {