summaryrefslogtreecommitdiff
path: root/src/chatServer.cpp
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-03-20 20:39:19 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-03-20 23:45:01 +0800
commite23bd1552448f444ca0f97fcfd5c68016b2e7eb6 (patch)
treeae623fd68bc5c42de1a697f12a2b10a3695d6990 /src/chatServer.cpp
parentb57f5ff383f9f3093fecbe1c4bc05be6771cc1c0 (diff)
Revert "fix: use shared ptr properly"
This reverts commit 5c007b1581e7c36ce81de299e47c0c9ef51e9950. revert until a solution is developed
Diffstat (limited to 'src/chatServer.cpp')
-rw-r--r--src/chatServer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chatServer.cpp b/src/chatServer.cpp
index 8605c75..8e9a3ab 100644
--- a/src/chatServer.cpp
+++ b/src/chatServer.cpp
@@ -39,7 +39,7 @@ void CChatServer::start() {
initManagers();
// will await while waiting for accept() to return a new client
- m_sessionManagerThread = std::jthread(&CSessionManager::run, g_pSessionManager);
+ m_sessionManagerThread = std::jthread(&CSessionManager::run, g_pSessionManager.get());
m_sessionManagerThread.detach();
while (true) {