* Download information of a given Content ID if not already tried * @param cid the ID to try */
| 790 | * @param cid the ID to try |
| 791 | */ |
| 792 | void ClientNetworkContentSocketHandler::DownloadContentInfo(ContentID cid) |
| 793 | { |
| 794 | /* When we tried to download it already, don't try again */ |
| 795 | if (std::ranges::find(this->requested, cid) != this->requested.end()) return; |
| 796 | |
| 797 | this->requested.push_back(cid); |
| 798 | this->queued.push_back(cid); |
| 799 | _request_queue_timeout.Reset(); |
| 800 | } |
| 801 | |
| 802 | /** |
| 803 | * Send a content request for queued content info download. |
no test coverage detected