Skip to content

Commit

Permalink
Fixed|Client: Excessive server list updating
Browse files Browse the repository at this point in the history
The client was updating the MPI server list whenever the Beacon
got a local server's response, even if the UI was not active or not
in the custom search mode.
  • Loading branch information
skyjake committed Mar 26, 2013
1 parent 2a61f07 commit 03b7d61
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doomsday/client/src/network/ui_mpi.cpp
Expand Up @@ -443,8 +443,11 @@ struct ServerDiscoveryObserver : DENG2_OBSERVES(ServerLink, DiscoveryUpdate)
{
void linkDiscoveryUpdate(ServerLink const &)
{
LOG_DEBUG("ServerDiscoveryObserver notified, updating server list");
MPIUpdateServerList();
if(searchMode == SEARCH_CUSTOM && UI_IsActive())
{
LOG_DEBUG("ServerDiscoveryObserver notified, updating server list");
MPIUpdateServerList();
}
}
};

Expand Down

0 comments on commit 03b7d61

Please sign in to comment.