Don't mask previous failures.

This commit is contained in:
tastytea 2021-06-01 17:06:25 +02:00
parent 40e39dc0e7
commit 6278779029
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 4 additions and 3 deletions

View File

@ -192,12 +192,13 @@ int main(int argc, char *argv[])
if (int ret{}; (ret = it->get()) != EXIT_SUCCESS)
{
return_code = ret;
if (return_code == EXIT_SUCCESS)
{
return_code = ret;
}
}
futurepool.erase(it);
}
return EXIT_SUCCESS;
}};
const auto max_threads{