diff options
author | Matt Johnston <matt@ucc.asn.au> | 2006-01-25 17:14:32 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2006-01-25 17:14:32 +0000 |
commit | 096ac021a9c83d26143aaef1e02a412846f1c0e3 (patch) | |
tree | c8cf2e85b47dc5121bdffc3526180a7621c3f81d | |
parent | fd0f873a367b133fd41af34dc168bd594ee2928c (diff) | |
parent | b05ab854ae9b5ecc179a4075ee8d7953d42ffd2b (diff) |
merge of c9dc9c734d4724866a86987356e6aedeed1c93dd
and fe38e5c38c2e7d5a4bb76aee511d345f1c2d5ac2
--HG--
extra : convert_revision : 8f25eab3ed6221e164894808fbb8bc461b5cbdaf
-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 7e8d428..4bed78d 100644 --- a/common-channel.c +++ b/common-channel.c @@ -377,7 +377,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")) |