DeregisterRegion from grid earlier on close
parent
e2fb600bf5
commit
bb0db96256
|
@ -1481,11 +1481,14 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
m_log.InfoFormat("[SCENE]: Closing down the single simulator: {0}", RegionInfo.RegionName);
|
||||
|
||||
StatsReporter.Close();
|
||||
|
||||
StatsReporter.Close();
|
||||
m_restartTimer.Stop();
|
||||
m_restartTimer.Close();
|
||||
|
||||
if (!GridService.DeregisterRegion(RegionInfo.RegionID))
|
||||
m_log.WarnFormat("[SCENE]: Deregister from grid failed for region {0}", Name);
|
||||
|
||||
// Kick all ROOT agents with the message, 'The simulator is going down'
|
||||
ForEachScenePresence(delegate(ScenePresence avatar)
|
||||
{
|
||||
|
@ -1516,9 +1519,6 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
m_sceneGraph.Close();
|
||||
|
||||
if (!GridService.DeregisterRegion(RegionInfo.RegionID))
|
||||
m_log.WarnFormat("[SCENE]: Deregister from grid failed for region {0}", Name);
|
||||
|
||||
base.Close();
|
||||
|
||||
// XEngine currently listens to the EventManager.OnShutdown event to trigger script stop and persistence.
|
||||
|
|
Loading…
Reference in New Issue