summaryrefslogtreecommitdiff
path: root/src/sessionManager.cpp
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-03-09 13:03:17 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-03-20 23:44:57 +0800
commit880b6a9275030515e11fdfeb3b6fc074bca9322d (patch)
tree7679d12347beac15c91f050748c211ccf8bd556b /src/sessionManager.cpp
parent694dd95da005d09962fec05ee48c8e985782671b (diff)
sessionManager: run in a jthread, for prep of inputManager
refactor(main)!: move main infra to oop chatServer
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 290b8c6..e449567 100644
--- a/src/sessionManager.cpp
+++ b/src/sessionManager.cpp
@@ -13,7 +13,7 @@ CSessionManager::~CSessionManager() {
}
std::pair<std::jthread, std::shared_ptr<CSession>> *CSessionManager::newSession(Hyprutils::OS::CFileDescriptor sockfd) {
- std::shared_ptr session = std::make_shared<CSession>(std::move(sockfd));
+ std::shared_ptr session = std::make_unique<CSession>(std::move(sockfd));
const auto instance = &m_vSessions.emplace_back(std::jthread(&CSession::run, session), std::move(session));
instance->second->setSelf(instance);
return instance;