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:
1 parent
c47ec46ebc
commit
1a1a33d0f0
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user