Added another .ini file error catch to the RemoteAdminPlugin Initialise method.
parent
634a22185d
commit
9f5e1efc2d
|
@ -28,7 +28,10 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
|
||||||
|
|
||||||
public void Initialise(OpenSimMain openSim)
|
public void Initialise(OpenSimMain openSim)
|
||||||
{
|
{
|
||||||
if (openSim.ConfigSource.Configs["RemoteAdmin"].GetBoolean("enabled", false))
|
IConfig remoteConfig = openSim.ConfigSource.Configs["RemoteAdmin"];
|
||||||
|
if (remoteConfig != null)
|
||||||
|
{
|
||||||
|
if (remoteConfig.GetBoolean("enabled", false))
|
||||||
{
|
{
|
||||||
System.Console.WriteLine("RADMIN", "Remote Admin Plugin Enabled");
|
System.Console.WriteLine("RADMIN", "Remote Admin Plugin Enabled");
|
||||||
|
|
||||||
|
@ -41,6 +44,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
|
||||||
m_httpd.AddXmlRPCHandler("admin_restart", XmlRpcRestartMethod);
|
m_httpd.AddXmlRPCHandler("admin_restart", XmlRpcRestartMethod);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public XmlRpcResponse XmlRpcRestartMethod(XmlRpcRequest request)
|
public XmlRpcResponse XmlRpcRestartMethod(XmlRpcRequest request)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue