| 578 | //----------------------------------------------------------------------------- |
| 579 | |
| 580 | void stopServerQuery() |
| 581 | { |
| 582 | // Cancel the current query, anything left on the ping |
| 583 | // list is moved to the finished list as "done". |
| 584 | if ( sgServerQueryActive ) |
| 585 | { |
| 586 | gPacketStatusList.clear(); |
| 587 | |
| 588 | if ( gPingList.size() ) |
| 589 | { |
| 590 | while ( gPingList.size() ) |
| 591 | { |
| 592 | gFinishedList.push_back( gPingList[0].address ); |
| 593 | gPingList.erase( U32( 0 ) ); |
| 594 | } |
| 595 | } |
| 596 | else |
| 597 | cancelServerQuery(); |
| 598 | } |
| 599 | } |
| 600 | |
| 601 | void startHeartbeat() |
| 602 | { |
no test coverage detected