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

This commit is contained in:
Shauren
2020-08-24 14:17:40 +02:00
parent 6079bc7f34
commit ec783fcbb5

View File

@@ -419,9 +419,6 @@ bool WorldSession::Update(uint32 diff, PacketFilter& updater)
_recvQueue.readd(requeuePackets.begin(), requeuePackets.end());
if (m_Socket && m_Socket->IsOpen() && _warden)
_warden->Update(diff);
if (!updater.ProcessUnsafe()) // <=> updater is of type MapSessionFilter
{
// Send time sync packet every 10s.
@@ -440,6 +437,9 @@ bool WorldSession::Update(uint32 diff, PacketFilter& updater)
//logout procedure should happen only in World::UpdateSessions() method!!!
if (updater.ProcessUnsafe())
{
if (m_Socket && m_Socket->IsOpen() && _warden)
_warden->Update(diff);
///- If necessary, log the player out
if (ShouldLogOut(currentTime) && !m_playerLoading)
LogoutPlayer(true);