silence unless the client has a legit station id

This commit is contained in:
DarthArgus
2016-09-26 06:28:09 +00:00
parent 5e890f9c07
commit 93735f9c3c
@@ -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);
}