diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/session.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/session.cpp b/src/session.cpp index 9838c3a..1c8dbf1 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -82,8 +82,10 @@ CSession::SRecvData CSession::read(const std::string &msg) { void CSession::run() { onConnect(); - if (registerSession()) - recvLoop(); + registerSession() ? + recvLoop() : + // TODO: get ip and print the ip also + log(LOG, "User exited without even registering"); g_pSessionManager->removeSession(self); } |
