feat(core): allow to disable auto-kick for idle players (#1550)

This commit is contained in:
Francesco Borzì
2019-03-03 15:26:07 +01:00
committed by GitHub
parent a958ff6e36
commit be0b7b23f8
4 changed files with 12 additions and 1 deletions

View File

@@ -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();
}