Core/Warden: Fix warden timeout ticking twice as fast as it should

Port From (https://github.com/TrinityCore/TrinityCore/commit/f7ed56f2329d5a73e3440578844a9274d6a787cf)
This commit is contained in:
hondacrx
2022-03-11 09:50:22 -05:00
parent 45a7c342c3
commit 7d1b910f24
+3 -3
View File
@@ -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);