diff --git a/src/qt/FutureScheduler.cpp b/src/qt/FutureScheduler.cpp index f83b5e7f..3ce86094 100644 --- a/src/qt/FutureScheduler.cpp +++ b/src/qt/FutureScheduler.cpp @@ -1,8 +1,16 @@ #include "FutureScheduler.h" +#include + +#include + FutureScheduler::FutureScheduler(QObject *parent) : QObject(parent), Alive(0), Stopping(false) { + static std::once_flag once; + std::call_once(once, []() { + QThreadPool::globalInstance()->setMaxThreadCount(4); + }); } FutureScheduler::~FutureScheduler()