Get rid of some unnecessary null checks in RegionApplicationBase.StartupSpecific() - a constructor can never return null.

Also adds some method doc to MainServer
This commit is contained in:
Justin Clark-Casey (justincc)
2012-06-15 00:40:12 +01:00
parent 93ba0332c4
commit 6993a26ba5
2 changed files with 33 additions and 14 deletions

View File

@@ -99,17 +99,13 @@ namespace OpenSim.Region.ClientStack
// "OOB" Server
if (m_networkServersInfo.ssl_listener)
{
BaseHttpServer server = null;
server = new BaseHttpServer(
BaseHttpServer server = new BaseHttpServer(
m_networkServersInfo.https_port, m_networkServersInfo.ssl_listener, m_networkServersInfo.cert_path,
m_networkServersInfo.cert_pass);
// Add the server to m_Servers
if(server != null)
{
m_log.InfoFormat("[REGION SERVER]: Starting HTTPS server on port {0}", server.Port);
MainServer.AddHttpServer(server);
server.Start();
}
m_log.InfoFormat("[REGION SERVER]: Starting HTTPS server on port {0}", server.Port);
MainServer.AddHttpServer(server);
server.Start();
}
base.StartupSpecific();