Skip to content

Commit

Permalink
Fix a bug of outputing read1 instead of read2 in stdout mode when mul…
Browse files Browse the repository at this point in the history
…tithreading
  • Loading branch information
mourisl committed Jun 7, 2023
1 parent bb8bc31 commit 9851b08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,6 @@ int main( int argc, char *argv[] )
for ( i = 0 ; i < numOfThreads ; ++i )
pthread_join( threads[i], &pthreadStatus ) ;


if ( outputStdout )
{
if ( reads.IsPaired() )
Expand All @@ -491,7 +490,7 @@ int main( int argc, char *argv[] )
{
reads.OutputBatch( readBatch + i, 1, false, fileInd1 ) ;
UpdateSummary( readBatch[i].correction, summary ) ;
pairedReads.OutputBatch( readBatch + i, 1, false, fileInd2 ) ;
pairedReads.OutputBatch( readBatch2 + i, 1, false, fileInd2 ) ;
UpdateSummary( readBatch2[i].correction, summary ) ;
}
}
Expand Down

0 comments on commit 9851b08

Please sign in to comment.