From 7d1b910f24cf6658d54671f74cb1f7a941a249fe Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 11 Mar 2022 09:50:22 -0500 Subject: [PATCH] Core/Warden: Fix warden timeout ticking twice as fast as it should Port From (https://github.com/TrinityCore/TrinityCore/commit/f7ed56f2329d5a73e3440578844a9274d6a787cf) --- Source/Game/Server/WorldSession.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Game/Server/WorldSession.cs b/Source/Game/Server/WorldSession.cs index dfed3f108..5673f4fe6 100644 --- a/Source/Game/Server/WorldSession.cs +++ b/Source/Game/Server/WorldSession.cs @@ -328,9 +328,6 @@ namespace Game break; } - if (m_Socket[(int)ConnectionType.Realm] != null && m_Socket[(int)ConnectionType.Realm].IsOpen() && _warden != null) - _warden.Update(); - if (!updater.ProcessUnsafe()) // <=> updater is of type MapSessionFilter { // Send time sync packet every 10s. @@ -347,6 +344,9 @@ namespace Game if (updater.ProcessUnsafe()) { + if (m_Socket[(int)ConnectionType.Realm] != null && m_Socket[(int)ConnectionType.Realm].IsOpen() && _warden != null) + _warden.Update(); + // If necessary, log the player out if (ShouldLogOut(currentTime) && m_playerLoading.IsEmpty()) LogoutPlayer(true);