summaryrefslogtreecommitdiff
path: root/src/chatServer.cpp
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-03-16 13:52:55 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-03-20 23:45:01 +0800
commitad4ae6449221edbbe5fcec9c366b1748fea2ba17 (patch)
tree535a0955cfda2cba6286d31f5c3d1fdd881dc59f /src/chatServer.cpp
parent36a1cfd61b8915e2a532ea5aa615bed9c2c0d24e (diff)
fix: use shared ptr properly
FIXME: for some reason dtors arent called even if use_count() is 0...
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 8e9a3ab..8605c75 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.get());
+ m_sessionManagerThread = std::jthread(&CSessionManager::run, g_pSessionManager);
m_sessionManagerThread.detach();
while (true) {