From c3ee3318d75af8c450b9c4201c3e50ec08ac064f Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 26 Mar 2023 00:08:23 +0100 Subject: [PATCH] WorkerPool: Default to 1 worker --- ext/libstrawberry-common/core/workerpool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/libstrawberry-common/core/workerpool.h b/ext/libstrawberry-common/core/workerpool.h index 2ca1b407..1885bd5d 100644 --- a/ext/libstrawberry-common/core/workerpool.h +++ b/ext/libstrawberry-common/core/workerpool.h @@ -165,10 +165,10 @@ class WorkerPool : public _WorkerPoolBase { template WorkerPool::WorkerPool(QObject *parent) : _WorkerPoolBase(parent), + worker_count_(1), next_worker_(0), next_id_(0) { - worker_count_ = qBound(1, QThread::idealThreadCount() / 2, 4); local_server_name_ = qApp->applicationName().toLower(); if (local_server_name_.isEmpty()) {