diff --git a/src/socket_transport.cpp b/src/socket_transport.cpp index 073a7f272..5e8ccad1d 100644 --- a/src/socket_transport.cpp +++ b/src/socket_transport.cpp @@ -35,6 +35,9 @@ bool BufferedSocket::ProcessRead() bool BufferedSocket::ProcessWrite() { + if (this->write_buffer.empty()) + return true; + int count = this->io->Send(this, this->write_buffer); if (count == 0) return false;