]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fixed to flush buffers when connection closed
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 24 May 2005 17:31:26 +0000 (17:31 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 24 May 2005 17:31:26 +0000 (17:31 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1501 e03df62e-2008-0410-955e-edbf42e46eb7

src/connection.cpp

index ce5ff3f9f359dba97cdb9b0afbe7e30ebf42fe48..1197fbb70fc757ec35242a19c9edd9f3a09edd7b 100644 (file)
@@ -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);
 }