From 8f509af1f42b5beca15c08199c8d56ba44fe5435 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 24 Aug 2016 04:37:21 +0100 Subject: fix the conditions to do parcel objects autoreturn --- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index e4574b4..02614bd 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs @@ -2244,10 +2244,10 @@ namespace OpenSim.Region.Framework.Scenes // any exception propogate upwards. try { - if (!m_scene.ShuttingDown || // if shutting down then there will be nothing to handle the return so leave till next restart - !m_scene.LoginsEnabled || // We're starting up or doing maintenance, don't mess with things - m_scene.LoadingPrims) // Land may not be valid yet - + // if shutting down then there will be nothing to handle the return so leave till next restart + if (!m_scene.ShuttingDown && + m_scene.LoginsEnabled && // We're starting up or doing maintenance, don't mess with things + !m_scene.LoadingPrims) // Land may not be valid yet { ILandObject parcel = m_scene.LandChannel.GetLandObject( m_rootPart.GroupPosition.X, m_rootPart.GroupPosition.Y); @@ -3402,10 +3402,11 @@ namespace OpenSim.Region.Framework.Scenes public virtual void DetachFromBackup() { if (m_scene != null) + { m_scene.SceneGraph.FireDetachFromBackup(this); - if (Backup && Scene != null) - m_scene.EventManager.OnBackup -= ProcessBackup; - + if (Backup) + m_scene.EventManager.OnBackup -= ProcessBackup; + } Backup = false; } -- cgit v1.1