summaryrefslogtreecommitdiff
path: root/src/connection.cpp
diff options
context:
space:
mode:
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);
}