Make small adjustment to JobEngine default from previous commit to enable it when [Startup] section is not present (though this is extremely unlikely).

This commit is contained in:
Justin Clark-Casey (justincc)
2014-11-21 02:16:56 +00:00
parent 59b38f842a
commit b1fd0d35e5

View File

@@ -338,7 +338,7 @@ namespace OpenSim
// Called from base.StartUp()
IConfig startupConfig = Config.Configs["Startup"];
if (startupConfig != null && startupConfig.GetBoolean("JobEngineEnabled", true))
if (startupConfig == null || startupConfig.GetBoolean("JobEngineEnabled", true))
Watchdog.JobEngine.Start();
m_httpServerPort = m_networkServersInfo.HttpListenerPort;