diff options
author | Justin Clark-Casey (justincc) | 2010-03-12 22:49:16 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-03-12 22:49:16 +0000 |
commit | 6828d8ecbefb7f48c4ce93d497e16d3df25bc9a5 (patch) | |
tree | 92e96744a5513db89b74ff8cd6e8f443e0c874f7 /OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs | |
parent | refactor: move RezSingleAttachmentFromInventory() from SceneGraph to Attachme... (diff) | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-6828d8ecbefb7f48c4ce93d497e16d3df25bc9a5.zip opensim-SC-6828d8ecbefb7f48c4ce93d497e16d3df25bc9a5.tar.gz opensim-SC-6828d8ecbefb7f48c4ce93d497e16d3df25bc9a5.tar.bz2 opensim-SC-6828d8ecbefb7f48c4ce93d497e16d3df25bc9a5.tar.xz |
Merge branch 'master' of ssh://justincc@opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs')
-rw-r--r-- | OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs index ef943ec..eebdf14 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs | |||
@@ -80,21 +80,24 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
80 | 80 | ||
81 | public void Initialise(IConfigSource source) | 81 | public void Initialise(IConfigSource source) |
82 | { | 82 | { |
83 | IConfig gridConfig = source.Configs["GridService"]; | 83 | if (Simian.IsSimianEnabled(source, "GridServices")) |
84 | if (gridConfig == null) | ||
85 | { | 84 | { |
86 | m_log.Error("[GRID CONNECTOR]: GridService missing from OpenSim.ini"); | 85 | IConfig gridConfig = source.Configs["GridService"]; |
87 | throw new Exception("Grid connector init error"); | 86 | if (gridConfig == null) |
88 | } | 87 | { |
88 | m_log.Error("[GRID CONNECTOR]: GridService missing from OpenSim.ini"); | ||
89 | throw new Exception("Grid connector init error"); | ||
90 | } | ||
89 | 91 | ||
90 | string serviceUrl = gridConfig.GetString("GridServerURI"); | 92 | string serviceUrl = gridConfig.GetString("GridServerURI"); |
91 | if (String.IsNullOrEmpty(serviceUrl)) | 93 | if (String.IsNullOrEmpty(serviceUrl)) |
92 | { | 94 | { |
93 | m_log.Info("[GRID CONNECTOR]: No Server URI named in section GridService, skipping SimianGridServiceConnector"); | 95 | m_log.Error("[GRID CONNECTOR]: No Server URI named in section GridService"); |
94 | return; | 96 | throw new Exception("Grid connector init error"); |
95 | } | 97 | } |
96 | 98 | ||
97 | m_serverUrl = serviceUrl; | 99 | m_serverUrl = serviceUrl; |
100 | } | ||
98 | } | 101 | } |
99 | 102 | ||
100 | #region IGridService | 103 | #region IGridService |