diff options
author | Matt Johnston <matt@ucc.asn.au> | 2006-03-08 12:53:09 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2006-03-08 12:53:09 +0000 |
commit | e4697de1757849bccfeb201ed2f2f98996e11934 (patch) | |
tree | 4490ac0dce1170ba5d1f0db4c9dc68ab4a764aa2 /common-channel.c | |
parent | 1dc06524446b6ed8fa152ff99b0d5763214737f2 (diff) | |
parent | b5989964979e3ee885eeb6d0758d96605b131a7b (diff) |
merge of 4cbdd6e0a0d8c061075b9ed7609a06c4547f67d3
and 5d396842815593611f0d61762440145d1fc74d5a
--HG--
extra : convert_revision : 4c883eb469d2d251ee8abddbc11ae4005db6da17
Diffstat (limited to 'common-channel.c')
-rw-r--r-- | common-channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common-channel.c b/common-channel.c index e5d8c27..68d2b48 100644 --- a/common-channel.c +++ b/common-channel.c @@ -376,7 +376,7 @@ static void writechannel(struct Channel* channel, int fd, circbuffer *cbuf) { cbuf_incrread(cbuf, len); channel->recvdonelen += len; - if (fd == channel->writefd && len == maxlen && channel->recveof) { + if (fd == channel->writefd && cbuf_getused(cbuf) == 0 && channel->recveof) { /* Check if we're closing up */ closewritefd(channel); TRACE(("leave writechannel: recveof set")) |