From 62787790296b00b34ec6519a2d87f05144f69421 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 1 Jun 2021 17:06:25 +0200 Subject: [PATCH] Don't mask previous failures. --- src/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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{