summaryrefslogtreecommitdiff
path: root/src/sessionManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sessionManager.cpp')
-rw-r--r--src/sessionManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sessionManager.cpp b/src/sessionManager.cpp
index d77c0ae..f5b29af 100644
--- a/src/sessionManager.cpp
+++ b/src/sessionManager.cpp
@@ -27,7 +27,7 @@ CSessionManager::~CSessionManager() {
std::pair<std::jthread, std::shared_ptr<CSession>> *CSessionManager::newSession() {
std::shared_ptr session = std::make_shared<CSession>();
- const auto instance = &m_vSessions.emplace_back(std::jthread(&CSession::run, session), std::move(session));
+ const auto instance = &m_vSessions.emplace_back(std::jthread(&CSession::run, session.get()), session);
instance->second->setSelf(instance);
return instance;
}