diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-24 17:31:26 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-24 17:31:26 +0000 |
commit | 9399e0e6f5cfa68baffa0f59e7ed8eac60b668f1 (patch) | |
tree | f58223a65c690c09c370336197d48058bb6d7661 /src/connection.cpp | |
parent | 688f218c733f9e750e53b4afd37b991648dfcd4f (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.cpp | 4 |
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); } |