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

Socket will be closed because of ReadDataHandlerResult::Error.
This commit is contained in:
Aokromes committed 2016-07-19 15:58:23 +02:00
1 parent c47ec46ebc
commit 1a1a33d0f0
1 file changed
+2 -1
+2 -1
View File
@@ -405,11 +405,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;
}