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