| 607 | //----------------------------------------------------------------------------- |
| 608 | |
| 609 | void querySingleServer( const NetAddress* addr, U8 /*flags*/ ) |
| 610 | { |
| 611 | sgServerQueryActive = true; |
| 612 | ServerInfo* si = findServerInfo( addr ); |
| 613 | if ( si ) |
| 614 | si->status = ServerInfo::Status_New | ServerInfo::Status_Updating; |
| 615 | |
| 616 | // Remove the server from the finished list (if it's there): |
| 617 | for ( U32 i = 0; i < gFinishedList.size(); i++ ) |
| 618 | { |
| 619 | if ( Net::compareAddresses( addr, &gFinishedList[i] ) ) |
| 620 | { |
| 621 | gFinishedList.erase( i ); |
| 622 | break; |
| 623 | } |
| 624 | } |
| 625 | |
| 626 | Con::executef( "onServerQueryStatus", "start", "Refreshing server...", "0" ); |
| 627 | gServerPingCount = gServerQueryCount = 0; |
| 628 | pushPingRequest( addr ); |
| 629 | processPingsAndQueries( gPingSession ); |
| 630 | } |
| 631 | |
| 632 | //----------------------------------------------------------------------------- |
| 633 |
no test coverage detected