aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2014-08-16 11:23:26 +0200
committerShauren <shauren.trinity@gmail.com>2014-08-16 11:23:26 +0200
commit2f5b8ade6cd3640a9d70890c32f572d4dd7f16d0 (patch)
tree63072aa5cd51790178499700c5a01c7d7038ee19 /src
parentd0176f985d20604a23396c326af303327ef989be (diff)
Core/Socket: Fixed merge mistake causing players to always be kicked after some time
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Server/WorldSocket.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Server/WorldSocket.cpp b/src/server/game/Server/WorldSocket.cpp
index f290a6a8b84..09fb0acda97 100644
--- a/src/server/game/Server/WorldSocket.cpp
+++ b/src/server/game/Server/WorldSocket.cpp
@@ -144,6 +144,10 @@ void WorldSocket::ReadDataHandler()
break;
}
+ // Our Idle timer will reset on any non PING opcodes.
+ // Catches people idling on the login screen and any lingering ingame connections.
+ _worldSession->ResetTimeOutTime();
+
// Copy the packet to the heap before enqueuing
_worldSession->QueuePacket(new WorldPacket(std::move(packet)));
break;