aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/DaemonManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/DaemonManager.cpp')
-rw-r--r--src/daemon/DaemonManager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/daemon/DaemonManager.cpp b/src/daemon/DaemonManager.cpp
index a70f551b..89314544 100644
--- a/src/daemon/DaemonManager.cpp
+++ b/src/daemon/DaemonManager.cpp
@@ -76,7 +76,9 @@ bool DaemonManager::start(const QString &flags, NetworkType::Type nettype, const
// --max-concurrency based on threads available. max: 6
int32_t concurrency = qBound(1, QThread::idealThreadCount() / 2, 6);
- arguments << "--max-concurrency" << QString::number(concurrency);
+ if(!flags.contains("--max-concurrency", Qt::CaseSensitive)){
+ arguments << "--max-concurrency" << QString::number(concurrency);
+ }
qDebug() << "starting monerod " + m_monerod;
qDebug() << "With command line arguments " << arguments;