From 93735f9c3c6249f07d3fb66184d50cd078aaeb22 Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Mon, 26 Sep 2016 00:52:44 -0500 Subject: [PATCH] silence unless the client has a legit station id --- .../LoginServer/src/shared/ClientConnection.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/engine/server/application/LoginServer/src/shared/ClientConnection.cpp b/engine/server/application/LoginServer/src/shared/ClientConnection.cpp index 1d108247..a4ea6168 100755 --- a/engine/server/application/LoginServer/src/shared/ClientConnection.cpp +++ b/engine/server/application/LoginServer/src/shared/ClientConnection.cpp @@ -59,9 +59,13 @@ void ClientConnection::onConnectionClosed() // client has disconnected if (m_clientId) { - // if it is a 0 they are a dos faggot, most likely - DEBUG_REPORT_LOG(true, ("Client %lu disconnected\n", m_stationId)); - LOG("LoginClientConnection", ("onConnectionClosed() for stationId (%lu) at IP (%s)", m_stationId, getRemoteAddress().c_str())); + if (m_stationId) + { + DEBUG_REPORT_LOG(true, ("Client %lu disconnected\n", m_stationId)); + LOG("LoginClientConnection", + ("onConnectionClosed() for stationId (%lu) at IP (%s)", m_stationId, getRemoteAddress().c_str())); + } + LoginServer::getInstance().removeClient(m_clientId); }