An extra safeguard for msg2sndr_flush().
authorWayne Davison <wayned@samba.org>
Thu, 16 Mar 2006 10:08:08 +0000 (10:08 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 16 Mar 2006 10:08:08 +0000 (10:08 +0000)
io.c

diff --git a/io.c b/io.c
index ea3c81b..9ddf125 100644 (file)
--- 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;