Applying Mantis patch 2597 (applied to trunk in revision 7274) to 0.6 stable branch

0.6.0-stable
MW 2008-11-13 15:42:19 +00:00
parent f888656bca
commit 8f0bf406fb
1 changed files with 11 additions and 0 deletions

View File

@ -641,6 +641,17 @@ namespace OpenSim.Region.Environment.Scenes
// Stop updating the scene objects and agents.
//m_heartbeatTimer.Close();
shuttingdown = true;
m_log.Debug("[SCENE]: Persisting changed objects");
List<EntityBase> entities = GetEntities();
foreach (EntityBase entity in entities)
{
if (!entity.IsDeleted && entity is SceneObjectGroup && ((SceneObjectGroup)entity).HasGroupChanged)
{
((SceneObjectGroup)entity).ProcessBackup(m_storageManager.DataStore);
}
}
// close the inner scene
m_innerScene.Close();
// De-register with region communications (events cleanup)