From: brain Date: Tue, 24 May 2005 17:34:43 +0000 (+0000) Subject: Extra checking X-Git-Tag: v2.0.23~10187 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=94e68e14d33c8e4617ba8aa818e959135a5780b9;p=user%2Fhenk%2Fcode%2Finspircd.git Extra checking git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1502 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/connection.cpp b/src/connection.cpp index 1197fbb70..e4d6485c0 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -170,6 +170,8 @@ bool ircd_connector::AddWriteBuf(std::string data) log(DEBUG,"connector::AddWriteBuf(%s)",data.c_str()); if (this->GetWriteError() != "") return false; + if (this->GetState() == STATE_DISCONNECTED) + return false; std::stringstream stream; stream << sendq << data; sendq = stream.str();