diff --git a/ZAPDTR/ZAPD/Main.cpp b/ZAPDTR/ZAPD/Main.cpp index 2f1d5be17..d596d0545 100644 --- a/ZAPDTR/ZAPD/Main.cpp +++ b/ZAPDTR/ZAPD/Main.cpp @@ -328,7 +328,7 @@ int main(int argc, char* argv[]) Directory::ListFiles(Globals::Instance->inputPath.string()); const int num_threads = std::thread::hardware_concurrency(); - ctpl::thread_pool pool(num_threads / 2); + ctpl::thread_pool pool(num_threads > 1 ? num_threads / 2 : 1); bool parseSuccessful;