fix(Core/Network): guard against null m_Socket in WorldSession::Update idle check (#25686)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
75fab8f478
commit
6efdf52d4e
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue