summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-24 17:34:43 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-24 17:34:43 +0000
commit94e68e14d33c8e4617ba8aa818e959135a5780b9 (patch)
tree6756e602932acf3cc34ae0b51e452efb7079a96c
parent9399e0e6f5cfa68baffa0f59e7ed8eac60b668f1 (diff)
Extra checking
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1502 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/connection.cpp2
1 files changed, 2 insertions, 0 deletions
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();