From aa37277b893d1bfe589618665f355495082e05b6 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 13 Mar 2025 22:57:56 +0800 Subject: clang-format & clang-tidy --- src/sessionManager.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/sessionManager.cpp') diff --git a/src/sessionManager.cpp b/src/sessionManager.cpp index 049ec2b..2a833e8 100644 --- a/src/sessionManager.cpp +++ b/src/sessionManager.cpp @@ -21,8 +21,8 @@ CSessionManager::~CSessionManager() { for (auto &[thread, session] : m_vSessions) { if (thread.joinable()) thread.detach(); - session.reset(); - } + session.reset(); + } log(SYS, "SessionManager: bye"); } @@ -63,8 +63,7 @@ void CSessionManager::removeSession(std::pairfirst.joinable()) it->first.detach(); // .detach the thread since it's removing itself - it->second.reset(); + it->second.reset(); m_vSessions.erase(it); } - } -- cgit v1.2.3