diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-03-13 22:57:56 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-03-20 23:45:00 +0800 |
| commit | aa37277b893d1bfe589618665f355495082e05b6 (patch) | |
| tree | 1d2be3784346ccaf211a08ad07873846d3519b4d /src/sessionManager.cpp | |
| parent | bcf30ffc53d7cf007f0bcd1ba9aca44fe2a2acde (diff) | |
clang-format & clang-tidy
Diffstat (limited to 'src/sessionManager.cpp')
| -rw-r--r-- | src/sessionManager.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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::pair<std::jthread, std::shared_ptr<CSes if (it != m_vSessions.end()) { if (it->first.joinable()) it->first.detach(); // .detach the thread since it's removing itself - it->second.reset(); + it->second.reset(); m_vSessions.erase(it); } - } |
