Don't kick in game GUI server host so he can idle in game

Fixed #4237
This commit is contained in:
Benau 2020-03-09 16:19:54 +08:00
parent 07e471c8ba
commit d4c9b16c28

View File

@ -2017,6 +2017,10 @@ void ServerLobby::update(int ticks)
{
if (w && w->getKart(i)->hasFinishedRace())
continue;
// Don't kick in game GUI server host so he can idle in game
if (m_process_type == PT_CHILD &&
peer->getHostId() == m_client_server_host_id.load())
continue;
Log::info("ServerLobby", "%s %s has been idle for more than"
" %d seconds, kick.",
peer->getAddress().toString().c_str(),