forked from mirror/azerothcore-wotlk
fix(Core/Network): guard against null m_Socket in WorldSession::Update idle check (#25686)
Co-authored-by: Claude Opus 4.7 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
75fab8f478
commit
6efdf52d4e
@@ -364,7 +364,7 @@ bool WorldSession::Update(uint32 diff, PacketFilter& updater)
|
||||
///- Before we process anything:
|
||||
/// If necessary, kick the player because the client didn't send anything for too long
|
||||
/// (or they've been idling in character select)
|
||||
if (IsConnectionIdle() && !HasPermission(rbac::RBAC_PERM_IGNORE_IDLE_CONNECTION))
|
||||
if (m_Socket && IsConnectionIdle() && !HasPermission(rbac::RBAC_PERM_IGNORE_IDLE_CONNECTION))
|
||||
m_Socket->CloseSocket();
|
||||
|
||||
if (updater.ProcessUnsafe())
|
||||
|
||||
Reference in New Issue
Block a user