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

* src/channel.c (do_channel_eof): Removed test of

CHANNEL_SENT_CLOSE flag.
(do_channel_write): Removed test of CHANNEL_SENT_EOF flag.
(do_channel_write_extended): -"-

Rev: src/channel.c:1.60
parent 795995ac
......@@ -1059,8 +1059,7 @@ do_channel_eof(struct packet_handler *closure UNUSED,
else
/* FIXME: What is a reasonable default behaviour?
* Closing the channel may be the right thing to do. */
if (! (channel->flags & CHANNEL_SENT_CLOSE))
channel_close(channel);
channel_close(channel);
}
}
else
......@@ -1540,8 +1539,7 @@ do_channel_write(struct abstract_write *w,
{
/* EOF */
assert(closure->channel->sources);
if ( (closure->channel->sources == 1)
&& !(closure->channel->flags & CHANNEL_SENT_EOF))
if (closure->channel->sources == 1)
channel_eof(closure->channel);
}
else
......@@ -1559,8 +1557,7 @@ do_channel_write_extended(struct abstract_write *w,
{
/* EOF */
assert(closure->super.channel->sources);
if ( (closure->super.channel->sources == 1)
&& !(closure->super.channel->flags & CHANNEL_SENT_EOF))
if (closure->super.channel->sources == 1)
channel_eof(closure->super.channel);
}
else
......
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