Skip to content

Commit 4b3558b

Browse files
committedMar 1, 2025·
change loop condition
1 parent 497231c commit 4b3558b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/quant.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ pub fn do_quantify<T: BufRead>(mut br: T, quant_opts: QuantOpts) -> anyhow::Resu
723723
let mut local_nrec = 0usize;
724724
// pop MetaChunks from the work queue until everything is
725725
// processed
726-
while !is_done.load(Ordering::SeqCst) {
726+
while !is_done.load(Ordering::SeqCst) || !in_q.is_empty() {
727727
while let Some(meta_chunk) = in_q.pop() {
728728
let first_cell_in_chunk = meta_chunk.first_chunk_index;
729729
for (cn, mut c) in meta_chunk.iter().enumerate() {

0 commit comments

Comments
 (0)
Please sign in to comment.