Make a missing or read-only estate_settings.xml non-fatal
parent
bed6c763a5
commit
94558603e5
|
@ -277,16 +277,22 @@ namespace OpenSim.Framework
|
||||||
{
|
{
|
||||||
if (configMember == null)
|
if (configMember == null)
|
||||||
{
|
{
|
||||||
// Load legacy defaults
|
try
|
||||||
//
|
{
|
||||||
configMember =
|
// Load legacy defaults
|
||||||
new ConfigurationMember(Path.Combine(Util.configDir(),
|
//
|
||||||
"estate_settings.xml"), "ESTATE SETTINGS",
|
configMember =
|
||||||
loadConfigurationOptions,
|
new ConfigurationMember(Path.Combine(Util.configDir(),
|
||||||
handleIncomingConfiguration, true);
|
"estate_settings.xml"), "ESTATE SETTINGS",
|
||||||
|
loadConfigurationOptions,
|
||||||
|
handleIncomingConfiguration, true);
|
||||||
|
|
||||||
l_EstateManagers.Clear();
|
l_EstateManagers.Clear();
|
||||||
configMember.performConfigurationRetrieve();
|
configMember.performConfigurationRetrieve();
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,8 +45,14 @@ namespace OpenSim.Framework
|
||||||
{
|
{
|
||||||
if (configMember == null)
|
if (configMember == null)
|
||||||
{
|
{
|
||||||
configMember = new ConfigurationMember(Path.Combine(Util.configDir(), "estate_settings.xml"), "ESTATE SETTINGS", LoadConfigurationOptions, HandleIncomingConfiguration, true);
|
try
|
||||||
configMember.performConfigurationRetrieve();
|
{
|
||||||
|
configMember = new ConfigurationMember(Path.Combine(Util.configDir(), "estate_settings.xml"), "ESTATE SETTINGS", LoadConfigurationOptions, HandleIncomingConfiguration, true);
|
||||||
|
configMember.performConfigurationRetrieve();
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue