Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/connectdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,9 @@ void CConnectDlg::showEvent ( QShowEvent* )

void CConnectDlg::RequestServerList()
{
// ensure ping timer is stopped
TimerPing.stop();

// reset flags
bServerListReceived = false;
bReducedServerListReceived = false;
Expand Down Expand Up @@ -560,10 +563,14 @@ void CConnectDlg::SetServerList ( const CHostAddress& InetAddr, const CVector<CS
}
}

// only if the ping timer is not already running (avoids double ping):
// immediately issue the ping measurements and start the ping timer since
// the server list is filled now
OnTimerPing();
TimerPing.start ( PING_UPDATE_TIME_SERVER_LIST_MS );
if ( !TimerPing.isActive() )
{
OnTimerPing();
TimerPing.start ( PING_UPDATE_TIME_SERVER_LIST_MS );
}
}

void CConnectDlg::SetConnClientsList ( const CHostAddress& InetAddr, const CVector<CChannelInfo>& vecChanInfo )
Expand Down
Loading