diff options
Diffstat (limited to 'OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs')
-rw-r--r-- | OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs index c375076..2e600f0 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs | |||
@@ -51,7 +51,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
51 | /// backend | 51 | /// backend |
52 | /// </summary> | 52 | /// </summary> |
53 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")] | 53 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")] |
54 | public class SimianGridServiceConnector : IGridService | 54 | public class SimianGridServiceConnector : IGridService, ISharedRegionModule |
55 | { | 55 | { |
56 | private static readonly ILog m_log = | 56 | private static readonly ILog m_log = |
57 | LogManager.GetLogger( | 57 | LogManager.GetLogger( |
@@ -68,8 +68,8 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
68 | 68 | ||
69 | public SimianGridServiceConnector() { } | 69 | public SimianGridServiceConnector() { } |
70 | public string Name { get { return "SimianGridServiceConnector"; } } | 70 | public string Name { get { return "SimianGridServiceConnector"; } } |
71 | public void AddRegion(Scene scene) { scene.RegisterModuleInterface<IGridService>(this); } | 71 | public void AddRegion(Scene scene) { if (!String.IsNullOrEmpty(m_serverUrl)) { scene.RegisterModuleInterface<IGridService>(this); } } |
72 | public void RemoveRegion(Scene scene) { scene.UnregisterModuleInterface<IGridService>(this); } | 72 | public void RemoveRegion(Scene scene) { if (!String.IsNullOrEmpty(m_serverUrl)) { scene.UnregisterModuleInterface<IGridService>(this); } } |
73 | 73 | ||
74 | #endregion ISharedRegionModule | 74 | #endregion ISharedRegionModule |
75 | 75 | ||
@@ -83,8 +83,8 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
83 | IConfig gridConfig = source.Configs["GridService"]; | 83 | IConfig gridConfig = source.Configs["GridService"]; |
84 | if (gridConfig == null) | 84 | if (gridConfig == null) |
85 | { | 85 | { |
86 | m_log.Error("[GRID CONNECTOR]: GridService missing from OpenSim.ini"); | 86 | m_log.Info("[GRID CONNECTOR]: GridService missing from OpenSim.ini, skipping SimianGridServiceConnector"); |
87 | throw new Exception("Grid connector init error"); | 87 | return; |
88 | } | 88 | } |
89 | 89 | ||
90 | string serviceUrl = gridConfig.GetString("GridServerURI"); | 90 | string serviceUrl = gridConfig.GetString("GridServerURI"); |