From 61dec3f1430bb0c8b9828a13cceedff097766f63 Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Sun, 5 Feb 2023 11:47:59 +0100 Subject: [PATCH] fix(Core/Socket): `CMSG_WARDEN_DATA` should not reset idle connections. (#14865) --- src/server/game/Server/WorldSocket.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/game/Server/WorldSocket.cpp b/src/server/game/Server/WorldSocket.cpp index 68132a874..964fb40e4 100644 --- a/src/server/game/Server/WorldSocket.cpp +++ b/src/server/game/Server/WorldSocket.cpp @@ -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);