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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user