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

* src/read_data.c (do_read_data): When the channel

is closed because  of a read failure, don't throw away the
return value from channel_close().

Rev: src/read_data.c:1.18
parent 042aaa41
......@@ -81,8 +81,8 @@ static int do_read_data(struct read_handler **h,
return LSH_OK | LSH_GOON;
case A_FAIL:
/* Send a channel close, and prepare the channel for closing */
channel_close(closure->channel);
return LSH_FAIL | LSH_DIE;
return channel_close(closure->channel)
| LSH_FAIL | LSH_DIE;
case A_EOF:
if (!--closure->channel->sources)
/* Send eof (but no close). */
......
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