diff --git a/client/client.cpp b/client/client.cpp index 336145d..2c2c415 100644 --- a/client/client.cpp +++ b/client/client.cpp @@ -29,14 +29,20 @@ CClient::~CClient() item.second->file_ = nullptr; } } - if (hearts_.joinable()) { - hearts_.join(); - } for (auto& item : ths_) { if (item.joinable()) { item.join(); } } + if (update_list_th_.joinable()) { + update_list_th_.join(); + } + if (th_down_active_.joinable()) { + th_down_active_.join(); + } + if (hearts_.joinable()) { + hearts_.join(); + } } void CClient::run(const std::string& ip, const std::string& port)