From: brain Date: Tue, 24 May 2005 17:31:26 +0000 (+0000) Subject: Fixed to flush buffers when connection closed X-Git-Tag: v2.0.23~10188 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=9399e0e6f5cfa68baffa0f59e7ed8eac60b668f1;p=user%2Fhenk%2Fcode%2Finspircd.git Fixed to flush buffers when connection closed git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1501 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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); }