fix(Core/Socket): CMSG_WARDEN_DATA should not reset idle connections. (#14865)

This commit is contained in:
UltraNix
2023-02-05 11:47:59 +01:00
committed by GitHub
parent 0ed7813e84
commit 61dec3f143

View File

@@ -385,7 +385,10 @@ WorldSocket::ReadDataHandlerResult WorldSocket::ReadDataHandler()
}
// Our Idle timer will reset on any non PING opcodes on login screen, allowing us to catch people idling.
_worldSession->ResetTimeOutTime(false);
if (packetToQueue->GetOpcode() != CMSG_WARDEN_DATA)
{
_worldSession->ResetTimeOutTime(false);
}
// Copy the packet to the heap before enqueuing
_worldSession->QueuePacket(packetToQueue);