diff --git a/src/main.cpp b/src/main.cpp index b9f6cf1..d8f41b9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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{