Do not allow more threads than max_threads.

This commit is contained in:
tastytea 2021-05-28 11:48:38 +02:00
parent b3f392e110
commit 65b46ca846
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}