X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fwrite.c;h=a23aa450d211c63e27227fd170f6e8b1b3713367;hb=d00c015780432f419a793c459ca332b7892bfe2a;hp=292708c77d08ee6aaf8d5cbfafed3ff72bd92a86;hpb=c92b18f7074e6d632c555bed5897c5723abde720;p=wimlib 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)