Skip to content

Commit 003e5ca

Browse files
committed
bugfix
1 parent 8501596 commit 003e5ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kmc_core/fastq_reader.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,8 +1163,9 @@ uint64 CFastqReaderDataSrc::read(uchar* buff, uint64 size, bool& last_in_file, b
11631163
{
11641164
pmm_binary_file_reader->free(in_data);
11651165
in_data = nullptr;
1166-
pop_pack(in_data, in_data_size, file_part, compression_type, last_in_file);
1167-
if (file_part == FilePart::End)
1166+
//may be false even if file_part != FilePart::End in stats mode
1167+
auto pop_res = pop_pack(in_data, in_data_size, file_part, compression_type, last_in_file);
1168+
if (!pop_res || file_part == FilePart::End)
11681169
{
11691170
in_progress = false;
11701171
last_in_file = true;

0 commit comments

Comments
 (0)