clear:补充一个清理。
This commit is contained in:
parent
f5d65b5b6b
commit
21d4570028
@ -29,14 +29,20 @@ CClient::~CClient()
|
|||||||
item.second->file_ = nullptr;
|
item.second->file_ = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (hearts_.joinable()) {
|
|
||||||
hearts_.join();
|
|
||||||
}
|
|
||||||
for (auto& item : ths_) {
|
for (auto& item : ths_) {
|
||||||
if (item.joinable()) {
|
if (item.joinable()) {
|
||||||
item.join();
|
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)
|
void CClient::run(const std::string& ip, const std::string& port)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user