Make a missing or read-only estate_settings.xml non-fatal

0.6.0-stable
Melanie Thielker 2008-10-11 15:41:25 +00:00
parent bed6c763a5
commit 94558603e5
2 changed files with 23 additions and 11 deletions

View File

@ -277,16 +277,22 @@ namespace OpenSim.Framework
{
if (configMember == null)
{
// Load legacy defaults
//
configMember =
new ConfigurationMember(Path.Combine(Util.configDir(),
"estate_settings.xml"), "ESTATE SETTINGS",
loadConfigurationOptions,
handleIncomingConfiguration, true);
try
{
// Load legacy defaults
//
configMember =
new ConfigurationMember(Path.Combine(Util.configDir(),
"estate_settings.xml"), "ESTATE SETTINGS",
loadConfigurationOptions,
handleIncomingConfiguration, true);
l_EstateManagers.Clear();
configMember.performConfigurationRetrieve();
l_EstateManagers.Clear();
configMember.performConfigurationRetrieve();
}
catch (Exception e)
{
}
}
}

View File

@ -45,8 +45,14 @@ namespace OpenSim.Framework
{
if (configMember == null)
{
configMember = new ConfigurationMember(Path.Combine(Util.configDir(), "estate_settings.xml"), "ESTATE SETTINGS", LoadConfigurationOptions, HandleIncomingConfiguration, true);
configMember.performConfigurationRetrieve();
try
{
configMember = new ConfigurationMember(Path.Combine(Util.configDir(), "estate_settings.xml"), "ESTATE SETTINGS", LoadConfigurationOptions, HandleIncomingConfiguration, true);
configMember.performConfigurationRetrieve();
}
catch (Exception e)
{
}
}
}