Don't poll stk server if this is a LAN server.

This commit is contained in:
hiker 2015-11-12 09:58:21 +11:00
parent 5fc830825f
commit 2e65b23539

View File

@ -141,7 +141,9 @@ void ServerLobbyRoomProtocol::update()
break;
case WORKING:
{
checkIncomingConnectionRequests();
// Only poll the STK server if this is a WAN server.
if(NetworkConfig::get()->isWAN())
checkIncomingConnectionRequests();
if (m_in_race && World::getWorld() &&
NetworkWorld::getInstance<NetworkWorld>()->isRunning())
{