aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Connectors/SimianGrid/SimianProfiles.cs
diff options
context:
space:
mode:
authorJohn Hurliman2010-03-12 14:28:31 -0800
committerJohn Hurliman2010-03-12 14:28:31 -0800
commit3036aba875187923b4e4d8481d46334e53393107 (patch)
tree4aa2b5ba3687873e0be69cee84a0652c9f2dd136 /OpenSim/Services/Connectors/SimianGrid/SimianProfiles.cs
parentFixing the previous patch to work correctly with standalone mode (diff)
downloadopensim-SC_OLD-3036aba875187923b4e4d8481d46334e53393107.zip
opensim-SC_OLD-3036aba875187923b4e4d8481d46334e53393107.tar.gz
opensim-SC_OLD-3036aba875187923b4e4d8481d46334e53393107.tar.bz2
opensim-SC_OLD-3036aba875187923b4e4d8481d46334e53393107.tar.xz
* Added a better check to the SimianGrid connectors to test if they are enabled or not. This method should work equally well with standalone or robust mode
* Applying #4602 from Misterblu to add collision detection to BulletDotNET
Diffstat (limited to 'OpenSim/Services/Connectors/SimianGrid/SimianProfiles.cs')
-rw-r--r--OpenSim/Services/Connectors/SimianGrid/SimianProfiles.cs31
1 files changed, 17 insertions, 14 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianProfiles.cs b/OpenSim/Services/Connectors/SimianGrid/SimianProfiles.cs
index 3c93725..9c226fb 100644
--- a/OpenSim/Services/Connectors/SimianGrid/SimianProfiles.cs
+++ b/OpenSim/Services/Connectors/SimianGrid/SimianProfiles.cs
@@ -88,24 +88,27 @@ namespace OpenSim.Services.Connectors.SimianGrid
88 88
89 public void Initialise(IConfigSource source) 89 public void Initialise(IConfigSource source)
90 { 90 {
91 IConfig gridConfig = source.Configs["UserAccountService"]; 91 if (Simian.IsSimianEnabled(source, "UserAccountServices"))
92 if (gridConfig == null)
93 { 92 {
94 m_log.Error("[PROFILES]: UserAccountService missing from OpenSim.ini"); 93 IConfig gridConfig = source.Configs["UserAccountService"];
95 throw new Exception("Profiles init error"); 94 if (gridConfig == null)
96 } 95 {
96 m_log.Error("[PROFILES]: UserAccountService missing from OpenSim.ini");
97 throw new Exception("Profiles init error");
98 }
97 99
98 string serviceUrl = gridConfig.GetString("UserAccountServerURI"); 100 string serviceUrl = gridConfig.GetString("UserAccountServerURI");
99 if (String.IsNullOrEmpty(serviceUrl)) 101 if (String.IsNullOrEmpty(serviceUrl))
100 { 102 {
101 m_log.Info("[PROFILES]: No UserAccountServerURI in section UserAccountService, skipping SimianProfiles"); 103 m_log.Error("[PROFILES]: No UserAccountServerURI in section UserAccountService");
102 return; 104 throw new Exception("Profiles init error");
103 } 105 }
104 106
105 if (!serviceUrl.EndsWith("/")) 107 if (!serviceUrl.EndsWith("/"))
106 serviceUrl = serviceUrl + '/'; 108 serviceUrl = serviceUrl + '/';
107 109
108 m_serverUrl = serviceUrl; 110 m_serverUrl = serviceUrl;
111 }
109 } 112 }
110 113
111 private void ClientConnectHandler(IClientCore clientCore) 114 private void ClientConnectHandler(IClientCore clientCore)