aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/OpenSimMain.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-05-12 16:57:56 +0000
committerJustin Clarke Casey2008-05-12 16:57:56 +0000
commitd3fb6039cad7b828dec8a1d7aef66aa10e6afdf2 (patch)
treec7e3a49e79878e4ea2958ee6ce188b2f0559be80 /OpenSim/Region/Application/OpenSimMain.cs
parent* Minor: Change 'delete region' message to region logout message (diff)
downloadopensim-SC_OLD-d3fb6039cad7b828dec8a1d7aef66aa10e6afdf2.zip
opensim-SC_OLD-d3fb6039cad7b828dec8a1d7aef66aa10e6afdf2.tar.gz
opensim-SC_OLD-d3fb6039cad7b828dec8a1d7aef66aa10e6afdf2.tar.bz2
opensim-SC_OLD-d3fb6039cad7b828dec8a1d7aef66aa10e6afdf2.tar.xz
* 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)
Diffstat (limited to 'OpenSim/Region/Application/OpenSimMain.cs')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index d910dc4..c7094c7 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -569,7 +569,18 @@ namespace OpenSim
569 //moved these here as the terrain texture has to be created after the modules are initialized 569 //moved these here as the terrain texture has to be created after the modules are initialized
570 // and has to happen before the region is registered with the grid. 570 // and has to happen before the region is registered with the grid.
571 scene.CreateTerrainTexture(true); 571 scene.CreateTerrainTexture(true);
572 scene.RegisterRegionWithGrid(); 572
573 try
574 {
575 scene.RegisterRegionWithGrid();
576 }
577 catch (Exception e)
578 {
579 m_log.ErrorFormat("[STARTUP]: Registration of region with grid failed, aborting startup - {0}", e);
580
581 // Carrying on now causes a lot of confusion down the line - we need to get the user's attention
582 System.Environment.Exit(1);
583 }
573 584
574 // We need to do this after we've initialized the scripting engines. 585 // We need to do this after we've initialized the scripting engines.
575 scene.StartScripts(); 586 scene.StartScripts();