From 4a89f376e807374a835bb56f39fdda548c9a0ce1 Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Wed, 5 Oct 2016 10:29:54 -0500 Subject: [PATCH] hopefully fix a mistake --- .../server/application/LoginServer/src/shared/LoginServer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/server/application/LoginServer/src/shared/LoginServer.cpp b/engine/server/application/LoginServer/src/shared/LoginServer.cpp index df7e0cfd..eacfee13 100755 --- a/engine/server/application/LoginServer/src/shared/LoginServer.cpp +++ b/engine/server/application/LoginServer/src/shared/LoginServer.cpp @@ -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);