mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/Warden: Fix warden timeout ticking twice as fast as it should
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user