Skip to content

Commit

Permalink
fix for stdin sketching
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ondov committed Aug 9, 2016
1 parent 90754da commit 2876515
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mash/Sketch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ int Sketch::initFromFiles(const vector<string> & files, const Parameters & param

if ( parameters.concatenated )
{
fclose(inStream);
if ( files[i] != "-" )
{
fclose(inStream);
}

threadPool.runWhenThreadAvailable(new SketchInput(files[i], 0, 0, "", "", parameters), sketchFile);
}
Expand Down

0 comments on commit 2876515

Please sign in to comment.