summaryrefslogtreecommitdiff
path: root/src/servers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/servers.cpp')
-rw-r--r--src/servers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/servers.cpp b/src/servers.cpp
index cf5d30f01..891eaf722 100644
--- a/src/servers.cpp
+++ b/src/servers.cpp
@@ -326,7 +326,7 @@ void serverrec::FlushWriteBuffers()
}
has_been_netsplit = true;
}
- if (this->connectors[i].HasBufferedOutput())
+ if ((this->connectors[i].HasBufferedOutput()) && (this->connectors[i].GetState() != STATE_DISCONNECTED))
{
if (!this->connectors[i].FlushWriteBuf())
{