From 218404a91da592dc289fb54fad6f72d532a1e741 Mon Sep 17 00:00:00 2001 From: taynpg Date: Mon, 16 Dec 2024 14:04:52 +0800 Subject: [PATCH] =?UTF-8?q?add=EF=BC=9A=E5=A4=9A=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/client.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/client.cpp b/client/client.cpp index 2d7f151..cc73231 100644 --- a/client/client.cpp +++ b/client/client.cpp @@ -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; }