changeset 270:50da8d4b5acd

merge of c9dc9c734d4724866a86987356e6aedeed1c93dd and fe38e5c38c2e7d5a4bb76aee511d345f1c2d5ac2
author Matt Johnston <matt@ucc.asn.au>
date Wed, 25 Jan 2006 17:14:32 +0000
parents 475a818dd6e7 (current diff) 92b9b182c615 (diff)
children be18c7dd486e
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/common-channel.c	Sun Jan 15 06:43:24 2006 +0000
+++ b/common-channel.c	Wed Jan 25 17:14:32 2006 +0000
@@ -377,7 +377,7 @@
 	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"))