feat(core): allow to disable auto-kick for idle players (#1550)
This commit is contained in:
parent
a958ff6e36
commit
be0b7b23f8
4 changed files with 12 additions and 1 deletions
|
|
@ -254,7 +254,7 @@ bool WorldSession::Update(uint32 diff, PacketFilter& updater)
|
|||
|
||||
/// 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())
|
||||
if (sWorld->getBoolConfig(CONFIG_CLOSE_IDLE_CONNECTIONS) && IsConnectionIdle())
|
||||
m_Socket->CloseSocket();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue