From 21d4570028622a8ed18c289712546501a5a9fa0b Mon Sep 17 00:00:00 2001 From: taynpg Date: Tue, 24 Dec 2024 08:59:03 +0800 Subject: [PATCH] =?UTF-8?q?clear=EF=BC=9A=E8=A1=A5=E5=85=85=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E6=B8=85=E7=90=86=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/client.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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)