hopefully fix a mistake

This commit is contained in:
DarthArgus
2016-10-05 10:29:54 -05:00
parent 69cdb67d7c
commit 4a89f376e8
@@ -1175,9 +1175,10 @@ void LoginServer::run(void)
// load authentication data and bind the monitor to the port
const int port = ConfigLoginServer::getMetricsListenerPort();
CMonitorAPI *mon = nullptr;
if (port) {
CMonitorAPI *mon = new CMonitorAPI("metricsAuthentication.cfg", ConfigLoginServer::getMetricsListenerPort());
mon = new CMonitorAPI("metricsAuthentication.cfg", ConfigLoginServer::getMetricsListenerPort());
getInstance().m_soeMonitor = mon;
const char *masterChannel = "Population";
mon->add(masterChannel, WORLD_COUNT_CHANNEL);