mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
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.
This commit is contained in:
@@ -2679,17 +2679,14 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
lock (m_attachments)
|
||||
{
|
||||
try
|
||||
// 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)
|
||||
{
|
||||
foreach (SceneObjectGroup grp in m_attachments)
|
||||
{
|
||||
// ControllingClient may be null at this point!
|
||||
m_scene.m_sceneGraph.DetachSingleAttachmentToInv(grp.GetFromAssetID(), ControllingClient);
|
||||
}
|
||||
}
|
||||
catch (InvalidOperationException)
|
||||
{
|
||||
m_log.Info("[CLIENT]: Couldn't save attachments. :(");
|
||||
m_scene.DeleteSceneObject(grp);
|
||||
}
|
||||
m_attachments.Clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user