From 65b46ca84686f180bc1cdf7e40778185fb87d81b Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 28 May 2021 11:48:38 +0200 Subject: [PATCH] Do not allow more threads than max_threads. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 371a4b4..b9fc35d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -197,7 +197,7 @@ int main(int argc, char *argv[]) for (const auto &filepath : input_files) { - if (futurepool.size() >= max_threads) + while (futurepool.size() >= max_threads) { futures_cleanup(); }