diff options
Diffstat (limited to 'src/sessionManager.cpp')
| -rw-r--r-- | src/sessionManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sessionManager.cpp b/src/sessionManager.cpp index 3d60db2..d1cf953 100644 --- a/src/sessionManager.cpp +++ b/src/sessionManager.cpp @@ -91,8 +91,10 @@ void CSessionManager::kick(std::pair<std::jthread, std::shared_ptr<CSession>> *s auto it = std::ranges::find_if(m_vSessions, [session](const auto &s) { return s.second.get() == session->second.get(); }); if (it != m_vSessions.end()) { - if (!reason.empty()) + if (!reason.empty()) { + it->second->setDeaf(false); it->second->write(reason); + } const auto native_handle = it->first.native_handle(); if (it->first.joinable()) it->first.detach(); // .detach the thread since it's removing itself |
