Commit ca58a7d7 authored by Niels Möller's avatar Niels Möller
Browse files

(write_buffer_close): Call close_fd if buffer

is empty.

Rev: src/write_buffer.c:1.25
parent ad9a17ad
......@@ -154,9 +154,13 @@ void write_buffer_consume(struct write_buffer *buffer, UINT32 size)
FLOW_CONTROL_REPORT(buffer->report, size);
}
/* FIXME: Delete this function, move the logic to close_fd_nicely or
* something instead. */
void write_buffer_close(struct write_buffer *buffer)
{
buffer->closed = 1;
if (buffer->empty)
close_fd(buffer->fd);
}
struct write_buffer *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment