Skip to content

Commit

Permalink
fix hang on end of input without -v
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancdotorg committed Jan 23, 2017
1 parent 660c20d commit 7db5d5f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions brainflayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -845,15 +845,16 @@ int main(int argc, char **argv) {
time_elapsed / 1.0e9
);

if (batch_stopped < Bopt) {
fprintf(stderr, "\n");
break;
} else {
fflush(stderr);
}
fflush(stderr);
}
}
// end stats

// main loop exit condition
if (batch_stopped < Bopt) {
if (vopt) { fprintf(stderr, "\n"); }
break;
}
}

return 0;
Expand Down

0 comments on commit 7db5d5f

Please sign in to comment.