summaryrefslogtreecommitdiff
path: root/src/session.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/session.cpp')
-rw-r--r--src/session.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/session.cpp b/src/session.cpp
index 8167a91..2814c41 100644
--- a/src/session.cpp
+++ b/src/session.cpp
@@ -151,7 +151,7 @@ void CSession::run() {
} else
log(LOG, "Client {} exited without even registering", m_ip);
- g_pSessionManager->kick(std::move(self));
+ g_pSessionManager->kick(self);
}
bool CSession::isMuted() const {
@@ -266,6 +266,6 @@ const std::string &CSession::getIp() const {
return m_ip;
}
-void CSession::setSelf(std::unique_ptr<std::pair<std::jthread, std::shared_ptr<CSession>>> self) {
- this->self = std::move(self);
+void CSession::setSelf(std::pair<std::jthread, std::shared_ptr<CSession>> *self) {
+ this->self = self;
}