diff options
-rw-r--r-- | src/connection.cpp | 2 |
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(); |