From 9c993255807445307f4961d0733c4c7404b68591 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Tue, 28 May 2024 02:24:25 -0400 Subject: [PATCH] Fix reversed min/max for configured network threads. --- src/p2p.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p2p.cpp b/src/p2p.cpp index 19098e73e..43fa9d1b2 100644 --- a/src/p2p.cpp +++ b/src/p2p.cpp @@ -42,7 +42,7 @@ using namespace std::placeholders; p2p::p2p(const settings& settings, const logger& log) NOEXCEPT : settings_(settings), - threadpool_(std::min(settings.threads, 1_u32)), + threadpool_(std::max(settings.threads, 1_u32)), strand_(threadpool_.service().get_executor()), hosts_(settings, log), broadcaster_(strand_),