replace incoerent UserAgentsService config

This commit is contained in:
UbitUmarov
2020-09-24 05:01:29 +01:00
parent 30d73f3477
commit 7979028b28
2 changed files with 3 additions and 15 deletions

View File

@@ -58,18 +58,13 @@ namespace OpenSim.Services.Connectors.Hypergrid
public UserAgentServiceConnector(IConfigSource config)
{
IConfig serviceConfig = config.Configs["UserAgentService"];
if (serviceConfig == null)
{
m_log.Error("[USER AGENT CONNECTOR]: UserAgentService missing from ini");
throw new Exception("UserAgent connector init error");
}
GridInfo tmp = new GridInfo(config);
string serviceURI = serviceConfig.GetString("UserAgentServerURI", String.Empty);
string serviceURI = tmp.HomeURL;
if (String.IsNullOrWhiteSpace(serviceURI))
{
m_log.Error("[USER AGENT CONNECTOR]: No Server URI named in section UserAgentService");
m_log.Error("[USER AGENT CONNECTOR]: No Home URI named in configuration");
throw new Exception("UserAgent connector init error");
}