summaryrefslogtreecommitdiff
path: root/src/sessionManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sessionManager.cpp')
-rw-r--r--src/sessionManager.cpp7
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);
}
-
}