From d00c015780432f419a793c459ca332b7892bfe2a Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 16 Dec 2012 21:29:16 -0600 Subject: [PATCH] main_writer_thread_proc(): Re-instate removed condition --- src/write.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/write.c b/src/write.c index 292708c7..a23aa450 100644 --- a/src/write.c +++ b/src/write.c @@ -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) -- 2.43.0