From cbd3e53ce128f284e4aa4c740a9df33533b29c2e Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 5 Dec 2008 03:26:01 +0000 Subject: Stop trying to save attachment states on logout. That caused a predicatble loss of no copy attachments, as the client context/thread was terminating before the save could complete. --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index c26f862..90d56de 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -2679,17 +2679,14 @@ namespace OpenSim.Region.Environment.Scenes { lock (m_attachments) { - try - { - foreach (SceneObjectGroup grp in m_attachments) - { - // ControllingClient may be null at this point! - m_scene.m_sceneGraph.DetachSingleAttachmentToInv(grp.GetFromAssetID(), ControllingClient); - } - } - catch (InvalidOperationException) + // 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_log.Info("[CLIENT]: Couldn't save attachments. :("); + m_scene.DeleteSceneObject(grp); } m_attachments.Clear(); } -- cgit v1.1