diff --git a/client/client.cpp b/client/client.cpp index 3d853b0..0d6c19d 100644 --- a/client/client.cpp +++ b/client/client.cpp @@ -130,6 +130,11 @@ bool CClient::down_task(const std::string& param) } down_ = std::make_shared(); const auto& vec = task_list_[id]->files; + + if (vec.empty()) { + logger_->warn("No files List, Please Check!"); + return false; + } // 开始传输文件 for (const auto& item : vec) {