aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs')
-rw-r--r--OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs27
1 files changed, 15 insertions, 12 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs
index fa387ba..1b5edf4 100644
--- a/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs
+++ b/OpenSim/Services/Connectors/SimianGrid/SimianPresenceServiceConnector.cs
@@ -104,21 +104,24 @@ namespace OpenSim.Services.Connectors.SimianGrid
104 104
105 public void Initialise(IConfigSource source) 105 public void Initialise(IConfigSource source)
106 { 106 {
107 IConfig gridConfig = source.Configs["PresenceService"]; 107 if (Simian.IsSimianEnabled(source, "PresenceServices"))
108 if (gridConfig == null)
109 { 108 {
110 m_log.Error("[PRESENCE CONNECTOR]: PresenceService missing from OpenSim.ini"); 109 IConfig gridConfig = source.Configs["PresenceService"];
111 throw new Exception("Presence connector init error"); 110 if (gridConfig == null)
112 } 111 {
112 m_log.Error("[PRESENCE CONNECTOR]: PresenceService missing from OpenSim.ini");
113 throw new Exception("Presence connector init error");
114 }
113 115
114 string serviceUrl = gridConfig.GetString("PresenceServerURI"); 116 string serviceUrl = gridConfig.GetString("PresenceServerURI");
115 if (String.IsNullOrEmpty(serviceUrl)) 117 if (String.IsNullOrEmpty(serviceUrl))
116 { 118 {
117 m_log.Info("[PRESENCE CONNECTOR]: No PresenceServerURI in section PresenceService, skipping SimianPresenceServiceConnector"); 119 m_log.Error("[PRESENCE CONNECTOR]: No PresenceServerURI in section PresenceService");
118 return; 120 throw new Exception("Presence connector init error");
119 } 121 }
120 122
121 m_serverUrl = serviceUrl; 123 m_serverUrl = serviceUrl;
124 }
122 } 125 }
123 126
124 #region IPresenceService 127 #region IPresenceService