diff options
author | Melanie Thielker | 2010-08-24 19:07:42 +0200 |
---|---|---|
committer | Melanie Thielker | 2010-08-24 19:07:42 +0200 |
commit | 4e324ae3cbf5c4ce16900bd5e57d8671c1de0cfc (patch) | |
tree | 0449e3dd4d05ea7b3057b7b88e09beff6590672d /OpenSim/Region/Framework | |
parent | Call the Cleanup when an agent logs out, when an agent leaves and just (diff) | |
download | opensim-SC_OLD-4e324ae3cbf5c4ce16900bd5e57d8671c1de0cfc.zip opensim-SC_OLD-4e324ae3cbf5c4ce16900bd5e57d8671c1de0cfc.tar.gz opensim-SC_OLD-4e324ae3cbf5c4ce16900bd5e57d8671c1de0cfc.tar.bz2 opensim-SC_OLD-4e324ae3cbf5c4ce16900bd5e57d8671c1de0cfc.tar.xz |
Call the cleanup after saving attachment states, so that the attachments
don't get killed before they can be saved
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 6452dfe..37d797e 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -3199,7 +3199,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
3199 | m_log.Debug("[Scene] Beginning ClientClosed"); | 3199 | m_log.Debug("[Scene] Beginning ClientClosed"); |
3200 | m_eventManager.TriggerClientClosed(agentID, this); | 3200 | m_eventManager.TriggerClientClosed(agentID, this); |
3201 | m_log.Debug("[Scene] Finished ClientClosed"); | 3201 | m_log.Debug("[Scene] Finished ClientClosed"); |
3202 | CleanDroppedAttachments(); | ||
3203 | } | 3202 | } |
3204 | catch (NullReferenceException) | 3203 | catch (NullReferenceException) |
3205 | { | 3204 | { |
@@ -3210,6 +3209,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
3210 | m_log.Debug("[Scene] Beginning OnRemovePresence"); | 3209 | m_log.Debug("[Scene] Beginning OnRemovePresence"); |
3211 | m_eventManager.TriggerOnRemovePresence(agentID); | 3210 | m_eventManager.TriggerOnRemovePresence(agentID); |
3212 | m_log.Debug("[Scene] Finished OnRemovePresence"); | 3211 | m_log.Debug("[Scene] Finished OnRemovePresence"); |
3212 | |||
3213 | CleanDroppedAttachments(); | ||
3214 | |||
3213 | ForEachClient( | 3215 | ForEachClient( |
3214 | delegate(IClientAPI client) | 3216 | delegate(IClientAPI client) |
3215 | { | 3217 | { |