From 003e5ca42490d8ef1cbecf6e9ee0b98db167bebc Mon Sep 17 00:00:00 2001 From: marekkokot Date: Fri, 8 Dec 2023 16:10:34 +0100 Subject: [PATCH] bugfix --- kmc_core/fastq_reader.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kmc_core/fastq_reader.cpp b/kmc_core/fastq_reader.cpp index dc2da00..bdfa798 100644 --- a/kmc_core/fastq_reader.cpp +++ b/kmc_core/fastq_reader.cpp @@ -1163,8 +1163,9 @@ uint64 CFastqReaderDataSrc::read(uchar* buff, uint64 size, bool& last_in_file, b { pmm_binary_file_reader->free(in_data); in_data = nullptr; - pop_pack(in_data, in_data_size, file_part, compression_type, last_in_file); - if (file_part == FilePart::End) + //may be false even if file_part != FilePart::End in stats mode + auto pop_res = pop_pack(in_data, in_data_size, file_part, compression_type, last_in_file); + if (!pop_res || file_part == FilePart::End) { in_progress = false; last_in_file = true;