From 52cb6cd9dfebb8a6126cf337a06404b163c64d8c Mon Sep 17 00:00:00 2001 From: root Date: Tue, 21 Aug 2012 17:17:52 +0200 Subject: [PATCH] Fix connections not being moved from conn to log. --- src/buffer.cpp | 1 + src/buffer_user.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer.cpp b/src/buffer.cpp index bae779d9..c3752700 100644 --- a/src/buffer.cpp +++ b/src/buffer.cpp @@ -91,6 +91,7 @@ namespace Buffer{ } usr->Send(); } + usr->Disconnect("Socket closed."); thisStream->cleanUsers(); std::cerr << "User " << usr->MyStr << " disconnected, socket number " << usr->S.getSocket() << std::endl; } diff --git a/src/buffer_user.cpp b/src/buffer_user.cpp index f1c9a68f..f67422f7 100644 --- a/src/buffer_user.cpp +++ b/src/buffer_user.cpp @@ -27,7 +27,6 @@ Buffer::user::user(Socket::Connection fd){ /// Drops held DTSC::Ring class, if one is held. Buffer::user::~user(){ Stream::get()->dropRing(myRing); - Disconnect("User disconnected"); }//destructor /// Disconnects the current user. Doesn't do anything if already disconnected.