summaryrefslogtreecommitdiff
path: root/src/session.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/session.cpp')
-rw-r--r--src/session.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/session.cpp b/src/session.cpp
index f8506c2..a6875b0 100644
--- a/src/session.cpp
+++ b/src/session.cpp
@@ -144,3 +144,8 @@ std::string CSession::getName() {
void CSession::setSelf(std::pair<std::jthread, std::shared_ptr<CSession>> *self) {
this->self = self;
}
+
+void CSession::onShutdown() {
+ write(SYS, "Shutting down, bye");
+ g_pSessionManager->removeSession(self);
+}