]> wimlib.net Git - wimlib/commitdiff
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 292708c77d08ee6aaf8d5cbfafed3ff72bd92a86..a23aa450d211c63e27227fd170f6e8b1b3713367 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 &&
                //
                // 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)
                       (msg = container_of(cur_lte->msg_list.next,
                                           struct message,
                                           list))->complete)