]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Extra checking
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 24 May 2005 17:34:43 +0000 (17:34 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 24 May 2005 17:34:43 +0000 (17:34 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1502 e03df62e-2008-0410-955e-edbf42e46eb7

src/connection.cpp

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