Skip to content

Commit

Permalink
fix(server): fix experimental pipeline flushing
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Oct 3, 2017
1 parent c2fd47f commit 6b4635f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl<T: Write> Write for Buffered<T> {
}

fn flush(&mut self) -> io::Result<()> {
if self.flush_pipeline && self.read_buf.is_empty() {
if self.flush_pipeline && !self.read_buf.is_empty() {
Ok(())
} else if self.write_buf.remaining() == 0 {
self.io.flush()
Expand Down

0 comments on commit 6b4635f

Please sign in to comment.