refactor: route the final scene backup through the same code that handles periodic backup
This is rather than making unnecessary duplicate checks that the SOG later performs again.0.7.4-extended
parent
03bc92d112
commit
73717f2ce7
|
@ -1280,16 +1280,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
m_log.Debug("[SCENE]: Persisting changed objects");
|
||||
EventManager.TriggerSceneShuttingDown(this);
|
||||
|
||||
EntityBase[] entities = GetEntities();
|
||||
foreach (EntityBase entity in entities)
|
||||
{
|
||||
if (!entity.IsDeleted && entity is SceneObjectGroup && ((SceneObjectGroup)entity).HasGroupChanged)
|
||||
{
|
||||
((SceneObjectGroup)entity).ProcessBackup(SimulationDataService, false);
|
||||
}
|
||||
}
|
||||
|
||||
Backup(false);
|
||||
m_sceneGraph.Close();
|
||||
|
||||
if (!GridService.DeregisterRegion(RegionInfo.RegionID))
|
||||
|
|
Loading…
Reference in New Issue