summaryrefslogtreecommitdiff
path: root/src/connection.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-24 17:31:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-24 17:31:26 +0000
commit9399e0e6f5cfa68baffa0f59e7ed8eac60b668f1 (patch)
treef58223a65c690c09c370336197d48058bb6d7661 /src/connection.cpp
parent688f218c733f9e750e53b4afd37b991648dfcd4f (diff)
Fixed to flush buffers when connection closed
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1501 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/connection.cpp')
-rw-r--r--src/connection.cpp4
1 files changed, 4 insertions, 0 deletions
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);
}