don't keep a reference to config, if not in use

LSLKeyTest
UbitUmarov 2015-12-09 21:35:20 +00:00
parent 4ad7160e05
commit 42e5ee4c4b
1 changed files with 3 additions and 1 deletions

View File

@ -79,6 +79,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
if (!m_config.GetBoolean("enabled", false)) if (!m_config.GetBoolean("enabled", false))
{ {
// m_log.InfoFormat("[IRC-Bridge] module disabled in configuration"); // m_log.InfoFormat("[IRC-Bridge] module disabled in configuration");
m_config = null;
return; return;
} }
@ -104,7 +105,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
MainServer.Instance.AddXmlRPCHandler("irc_admin", XmlRpcAdminMethod, false); MainServer.Instance.AddXmlRPCHandler("irc_admin", XmlRpcAdminMethod, false);
m_region = new RegionState(scene, m_config); m_region = new RegionState(scene, m_config);
lock (m_regions) m_regions.Add(m_region); lock (m_regions)
m_regions.Add(m_region);
m_region.Open(); m_region.Open();
} }
catch (Exception e) catch (Exception e)