From 9399e0e6f5cfa68baffa0f59e7ed8eac60b668f1 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 24 May 2005 17:31:26 +0000 Subject: Fixed to flush buffers when connection closed git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1501 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/connection.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/connection.cpp b/src/connection.cpp index ce5ff3f9f..1197fbb70 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -371,6 +371,10 @@ void ircd_connector::SetState(int newstate) void ircd_connector::CloseConnection() { + log(DEBUG,"Closing connection"); + // flush the queues + this->sendq = ""; + this->ircdbuffer = ""; shutdown(this->fd,2); close(this->fd); } -- cgit v1.2.3