Warden issue - disabled to prevent crash

Code commented out to prevent crash on login.

This will be addressed as soon as possible.
This commit is contained in:
Charles A Edwards 2016-08-13 16:54:35 +01:00 committed by Antz
parent f0d405bad1
commit 3a3d19fb18

View file

@ -355,8 +355,9 @@ bool WorldSession::Update(PacketFilter& updater)
m_Socket = NULL; m_Socket = NULL;
} }
if (m_Socket && !m_Socket->IsClosed() && _warden) // WARDEN ISSUE - commented out to stop crash
_warden->Update(); // if (m_Socket && !m_Socket->IsClosed() && _warden)
// _warden->Update();
// check if we are safe to proceed with logout // check if we are safe to proceed with logout
// logout procedure should happen only in World::UpdateSessions() method!!! // logout procedure should happen only in World::UpdateSessions() method!!!
@ -366,9 +367,9 @@ bool WorldSession::Update(PacketFilter& updater)
time_t currTime = time(NULL); time_t currTime = time(NULL);
if (!m_Socket || (ShouldLogOut(currTime) && !m_playerLoading)) if (!m_Socket || (ShouldLogOut(currTime) && !m_playerLoading))
{ LogoutPlayer(true); } { LogoutPlayer(true); }
// WARDEN ISSUE - commented out to stop crash
if (m_Socket && GetPlayer() && _warden) // if (m_Socket && GetPlayer() && _warden)
_warden->Update(); // _warden->Update();
if (!m_Socket) if (!m_Socket)
{ return false; } // Will remove this session from the world session map { return false; } // Will remove this session from the world session map