Core/Auth: Fixed clients being disconnected if taking too long to select game account for login

Closes #13782
This commit is contained in:
Shauren
2015-02-11 15:35:51 +01:00
parent 36963f2442
commit c9ca81f806

View File

@@ -531,7 +531,7 @@ void Battlenet::Session::ReadHandler()
if (stream.Read<bool>(1))
header.Channel = stream.Read<int32>(4);
if (header.Channel != AUTHENTICATION && !_authed)
if (header.Channel != AUTHENTICATION && (header.Channel != CONNECTION || header.Opcode != Connection::CMSG_PING) && !_authed)
{
TC_LOG_DEBUG("session.packets", "%s Received not allowed %s. Client has not authed yet.", GetClientInfo().c_str(), header.ToString().c_str());
CloseSocket();