| 514 | //----------------------------------------------------------------------------- |
| 515 | |
| 516 | void querySingleServer( const NetAddress* addr, U8 /*flags*/ ) |
| 517 | { |
| 518 | sgServerQueryActive = true; |
| 519 | ServerInfo* si = findServerInfo( addr ); |
| 520 | if ( si ) |
| 521 | si->status = ServerInfo::Status_New | ServerInfo::Status_Updating; |
| 522 | |
| 523 | // Remove the server from the finished list (if it's there): |
| 524 | for ( U32 i = 0; i < (U32)gFinishedList.size(); i++ ) |
| 525 | { |
| 526 | if ( Net::compareAddresses( addr, &gFinishedList[i] ) ) |
| 527 | { |
| 528 | gFinishedList.erase( i ); |
| 529 | break; |
| 530 | } |
| 531 | } |
| 532 | |
| 533 | Con::executef( 4, "onServerQueryStatus", "start", "Refreshing server...", "0" ); |
| 534 | gServerPingCount = gServerQueryCount = 0; |
| 535 | pushPingRequest( addr ); |
| 536 | processPingsAndQueries( gPingSession ); |
| 537 | } |
| 538 | |
| 539 | //----------------------------------------------------------------------------- |
| 540 |
no test coverage detected