main_writer_thread_proc(): Re-instate removed condition
authorEric Biggers <ebiggers3@gmail.com>
Mon, 17 Dec 2012 03:29:16 +0000 (21:29 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 17 Dec 2012 03:29:16 +0000 (21:29 -0600)
src/write.c

index 292708c..a23aa45 100644 (file)
@@ -1020,6 +1020,7 @@ static int main_writer_thread_proc(struct list_head *stream_list,
                //
                // Otherwise, write all the chunks we can.
                while (cur_lte != NULL &&
+                      !list_empty(&cur_lte->msg_list) &&
                       (msg = container_of(cur_lte->msg_list.next,
                                           struct message,
                                           list))->complete)