From 94e68e14d33c8e4617ba8aa818e959135a5780b9 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 24 May 2005 17:34:43 +0000 Subject: Extra checking git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1502 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/connection.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(); -- cgit v1.2.3