diff options
Diffstat (limited to 'OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs')
-rw-r--r-- | OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs index 3f00534..1c22a72 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs | |||
@@ -85,24 +85,27 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
85 | 85 | ||
86 | public void Initialise(IConfigSource source) | 86 | public void Initialise(IConfigSource source) |
87 | { | 87 | { |
88 | IConfig gridConfig = source.Configs["AssetService"]; | 88 | if (Simian.IsSimianEnabled(source, "AssetServices")) |
89 | if (gridConfig == null) | ||
90 | { | 89 | { |
91 | m_log.Error("[ASSET CONNECTOR]: AssetService missing from OpenSim.ini"); | 90 | IConfig gridConfig = source.Configs["AssetService"]; |
92 | throw new Exception("Asset connector init error"); | 91 | if (gridConfig == null) |
93 | } | 92 | { |
93 | m_log.Error("[ASSET CONNECTOR]: AssetService missing from OpenSim.ini"); | ||
94 | throw new Exception("Asset connector init error"); | ||
95 | } | ||
94 | 96 | ||
95 | string serviceUrl = gridConfig.GetString("AssetServerURI"); | 97 | string serviceUrl = gridConfig.GetString("AssetServerURI"); |
96 | if (String.IsNullOrEmpty(serviceUrl)) | 98 | if (String.IsNullOrEmpty(serviceUrl)) |
97 | { | 99 | { |
98 | m_log.Info("[ASSET CONNECTOR]: No AssetServerURI in section AssetService, skipping SimianAssetServiceConnector"); | 100 | m_log.Error("[ASSET CONNECTOR]: No AssetServerURI in section AssetService"); |
99 | return; | 101 | throw new Exception("Asset connector init error"); |
100 | } | 102 | } |
101 | 103 | ||
102 | if (!serviceUrl.EndsWith("/")) | 104 | if (!serviceUrl.EndsWith("/") && !serviceUrl.EndsWith("=")) |
103 | serviceUrl = serviceUrl + '/'; | 105 | serviceUrl = serviceUrl + '/'; |
104 | 106 | ||
105 | m_serverUrl = serviceUrl; | 107 | m_serverUrl = serviceUrl; |
108 | } | ||
106 | } | 109 | } |
107 | 110 | ||
108 | #region IAssetService | 111 | #region IAssetService |