Core/PacketIO: Missing changes from 548aa119ac that could result in a crash due to double Locking (#17008)

Socket will be closed because of ReadDataHandlerResult::Error.
This commit is contained in:
Patrick L
2016-04-20 17:03:40 +02:00
committed by Shauren
parent 636c487704
commit 514b908170

View File

@@ -344,11 +344,12 @@ WorldSocket::ReadDataHandlerResult WorldSocket::ReadDataHandler()
default:
{
sessionGuard.lock();
LogOpcodeText(opcode, sessionGuard);
if (!_worldSession)
{
TC_LOG_ERROR("network.opcode", "ProcessIncoming: Client not authed opcode = %u", uint32(opcode));
CloseSocket();
return ReadDataHandlerResult::Error;
}