From 7cef6f288c4de66462235b923e8b7c8054e95e95 Mon Sep 17 00:00:00 2001 From: Giulio Formenti Date: Wed, 25 Dec 2024 19:01:58 -0500 Subject: [PATCH] Update reads.cpp --- src/reads.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reads.cpp b/src/reads.cpp index eb4d5ed..13f25a4 100644 --- a/src/reads.cpp +++ b/src/reads.cpp @@ -739,7 +739,7 @@ void InReads::writeToStream() { std::vector,uint32_t>> readBatchesCpy; - while (streamOutput || batchCounter < readBatches.size()) { + while (streamOutput || batchCounter-1 < readBatches.size()) { { std::unique_lock lck(mtx);