1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 06:33:13 +02:00

Do not clear want write on a socket if we are unable to completely write its buffer

This commit is contained in:
Adam
2010-12-23 18:50:27 -05:00
parent 3009540a00
commit 15d29edae9
+2 -1
View File
@@ -515,7 +515,8 @@ bool BufferedSocket::ProcessWrite()
if (count == -1)
return false;
this->WriteBuffer = this->WriteBuffer.substr(count);
SocketEngine->ClearWritable(this);
if (this->WriteBuffer.empty())
SocketEngine->ClearWritable(this);
return true;
}