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
Justin Clark-Casey (justincc) 2013-01-10 22:59:40 +00:00
parent 03bc92d112
commit 73717f2ce7
1 changed files with 1 additions and 10 deletions

View File

@ -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))