Skip to content

Commit 86fec5c

Browse files
climb4droidmonkey
authored andcommitted
changed minimum number of threads in the QThreadPool from 2 to 3
1 parent bbd4423 commit 86fec5c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ int main(int argc, char** argv)
7575

7676
// HACK: Prevent long-running threads from deadlocking the program with only 1 CPU
7777
// See https://github.com/keepassxreboot/keepassxc/issues/10391
78-
if (QThreadPool::globalInstance()->maxThreadCount() < 2) {
79-
QThreadPool::globalInstance()->setMaxThreadCount(2);
78+
// HACK: increased to a minimum of 3 threads
79+
// See https://github.com/keepassxreboot/keepassxc/issues/12909
80+
if (QThreadPool::globalInstance()->maxThreadCount() < 3) {
81+
QThreadPool::globalInstance()->setMaxThreadCount(3);
8082
}
8183

8284
QCommandLineParser parser;

0 commit comments

Comments
 (0)