add:多文件下载。

This commit is contained in:
taynpg 2024-12-16 14:04:52 +08:00
parent 8889bd061d
commit 218404a91d

View File

@ -146,6 +146,10 @@ bool CClient::down_one_file(const std::string& id, const std::string& file)
return false;
}
down_->trans_state_ = TRANS_REDAY;
while (down_->trans_state_ != TRANS_DONE) {
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
return true;
}