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.
This commit is contained in:
Justin Clark-Casey (justincc)
2013-01-10 22:59:40 +00:00
parent 17f21ba9a0
commit 983e458bb6

View File

@@ -1322,16 +1322,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))