Eable leave connection

This commit is contained in:
dijunkun
2023-10-09 14:11:29 +08:00
parent 85582f8339
commit 95d2d74979
8 changed files with 83 additions and 121 deletions

View File

@@ -32,7 +32,9 @@ WsCore::~WsCore() {
LOG_INFO("> Error closing connection {}", ec.message());
}
m_thread_->join();
if (m_thread_->joinable()) {
m_thread_->join();
}
}
int WsCore::Connect(std::string const &uri) {