mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
* If a region running in grid mode fails to login to the grid service, startup will now terminate instead of carrying on (and thus burying the error message)
This commit is contained in:
@@ -569,7 +569,18 @@ namespace OpenSim
|
||||
//moved these here as the terrain texture has to be created after the modules are initialized
|
||||
// and has to happen before the region is registered with the grid.
|
||||
scene.CreateTerrainTexture(true);
|
||||
scene.RegisterRegionWithGrid();
|
||||
|
||||
try
|
||||
{
|
||||
scene.RegisterRegionWithGrid();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.ErrorFormat("[STARTUP]: Registration of region with grid failed, aborting startup - {0}", e);
|
||||
|
||||
// Carrying on now causes a lot of confusion down the line - we need to get the user's attention
|
||||
System.Environment.Exit(1);
|
||||
}
|
||||
|
||||
// We need to do this after we've initialized the scripting engines.
|
||||
scene.StartScripts();
|
||||
|
||||
Reference in New Issue
Block a user