aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-03-16 10:08:08 +0000
committerWayne Davison <wayned@samba.org>2006-03-16 10:08:08 +0000
commita7704777cee14bb3d0cb3a288ee44a620fca8a59 (patch)
treee72fa75f4d70d7f6eff1cf4bae71afe9f9109b21 /io.c
parent7d51b8374d57d3cbdbd9821ed80221f9189d4d35 (diff)
downloadandroid_external_rsync-a7704777cee14bb3d0cb3a288ee44a620fca8a59.tar.gz
android_external_rsync-a7704777cee14bb3d0cb3a288ee44a620fca8a59.tar.bz2
android_external_rsync-a7704777cee14bb3d0cb3a288ee44a620fca8a59.zip
An extra safeguard for msg2sndr_flush().
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index ea3c81bd..9ddf1253 100644
--- a/io.c
+++ b/io.c
@@ -1153,7 +1153,7 @@ static void msg2sndr_flush(void)
if (defer_forwarding_messages)
return;
- while (msg2sndr.head) {
+ while (msg2sndr.head && io_multiplexing_out) {
struct msg_list_item *m = msg2sndr.head;
if (!(msg2sndr.head = m->next))
msg2sndr.tail = NULL;