From c96af3963e088d97be77e571368234939ba00c0f Mon Sep 17 00:00:00 2001 From: Marek Kokot Date: Fri, 8 Dec 2023 16:59:20 +0100 Subject: [PATCH] bugfix for #9 --- src/filtering-KMC/fastq_reader.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/filtering-KMC/fastq_reader.cpp b/src/filtering-KMC/fastq_reader.cpp index e963ab2..075ad52 100644 --- a/src/filtering-KMC/fastq_reader.cpp +++ b/src/filtering-KMC/fastq_reader.cpp @@ -1140,8 +1140,9 @@ uint64 CFastqReaderDataSrc::read(uchar* buff, uint64 size, bool& last_in_file) { pmm_binary_file_reader->free(in_data); in_data = nullptr; - binary_pack_queue->pop(in_data, in_data_size, file_part, compression_type); - if (file_part == FilePart::End) + //may be false even if file_part != FilePart::End in stats mode + auto pop_res = binary_pack_queue->pop(in_data, in_data_size, file_part, compression_type); + if (!pop_res || file_part == FilePart::End) { in_progress = false; last_in_file = true;