diff options
author | John Hurliman | 2010-03-12 14:28:31 -0800 |
---|---|---|
committer | John Hurliman | 2010-03-12 14:28:31 -0800 |
commit | 3036aba875187923b4e4d8481d46334e53393107 (patch) | |
tree | 4aa2b5ba3687873e0be69cee84a0652c9f2dd136 /OpenSim/Services/Connectors/SimianGrid/SimianFriendsServiceConnector.cs | |
parent | Fixing the previous patch to work correctly with standalone mode (diff) | |
download | opensim-SC-3036aba875187923b4e4d8481d46334e53393107.zip opensim-SC-3036aba875187923b4e4d8481d46334e53393107.tar.gz opensim-SC-3036aba875187923b4e4d8481d46334e53393107.tar.bz2 opensim-SC-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/SimianFriendsServiceConnector.cs')
-rw-r--r-- | OpenSim/Services/Connectors/SimianGrid/SimianFriendsServiceConnector.cs | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianFriendsServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianFriendsServiceConnector.cs index abb98a3..b3ecc7e 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianFriendsServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianFriendsServiceConnector.cs | |||
@@ -76,21 +76,24 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
76 | 76 | ||
77 | public void Initialise(IConfigSource source) | 77 | public void Initialise(IConfigSource source) |
78 | { | 78 | { |
79 | IConfig assetConfig = source.Configs["FriendsService"]; | 79 | if (Simian.IsSimianEnabled(source, "FriendsServices")) |
80 | if (assetConfig == null) | ||
81 | { | 80 | { |
82 | m_log.Error("[FRIENDS CONNECTOR]: FriendsService missing from OpenSim.ini"); | 81 | IConfig assetConfig = source.Configs["FriendsService"]; |
83 | throw new Exception("Friends connector init error"); | 82 | if (assetConfig == null) |
84 | } | 83 | { |
84 | m_log.Error("[FRIENDS CONNECTOR]: FriendsService missing from OpenSim.ini"); | ||
85 | throw new Exception("Friends connector init error"); | ||
86 | } | ||
85 | 87 | ||
86 | string serviceURI = assetConfig.GetString("FriendsServerURI"); | 88 | string serviceURI = assetConfig.GetString("FriendsServerURI"); |
87 | if (String.IsNullOrEmpty(serviceURI)) | 89 | if (String.IsNullOrEmpty(serviceURI)) |
88 | { | 90 | { |
89 | m_log.Info("[FRIENDS CONNECTOR]: No Server URI named in section FriendsService, skipping SimianFriendsServiceConnector"); | 91 | m_log.Error("[FRIENDS CONNECTOR]: No Server URI named in section FriendsService"); |
90 | return; | 92 | throw new Exception("Friends connector init error"); |
91 | } | 93 | } |
92 | 94 | ||
93 | m_serverUrl = serviceURI; | 95 | m_serverUrl = serviceURI; |
96 | } | ||
94 | } | 97 | } |
95 | 98 | ||
96 | #region IFriendsService | 99 | #region IFriendsService |