diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sessionManager.cpp | 2 |
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; } |
