From d4c9b16c28d0ed116badec8e668378c15c5ee743 Mon Sep 17 00:00:00 2001 From: Benau Date: Mon, 9 Mar 2020 16:19:54 +0800 Subject: [PATCH] Don't kick in game GUI server host so he can idle in game Fixed #4237 --- src/network/protocols/server_lobby.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/network/protocols/server_lobby.cpp b/src/network/protocols/server_lobby.cpp index 979e8ca89..bf3a383df 100644 --- a/src/network/protocols/server_lobby.cpp +++ b/src/network/protocols/server_lobby.cpp @@ -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(),