diff --git a/src/socket_transport.cpp b/src/socket_transport.cpp index 287e60450..75fdd7f44 100644 --- a/src/socket_transport.cpp +++ b/src/socket_transport.cpp @@ -42,6 +42,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;