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:
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user