diff options
-rw-r--r-- | src/facetron.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/facetron.c b/src/facetron.c index bd7f58ed..6c04835a 100644 --- a/src/facetron.c +++ b/src/facetron.c @@ -240,6 +240,8 @@ static void munch_threads(struct image *images, int n_total_patterns, struct process_args *pargs; int r; + if ( n_started == n_total_patterns ) break; + pargs = worker_args[i]; pargs->image = &images[n_started++]; |