diff --git a/src/cpp/ripple/JobQueue.cpp b/src/cpp/ripple/JobQueue.cpp index 1b236295b3..b029dab5e8 100644 --- a/src/cpp/ripple/JobQueue.cpp +++ b/src/cpp/ripple/JobQueue.cpp @@ -5,6 +5,7 @@ #include #include "Log.h" +#include "Config.h" SETUP_LOG(); @@ -184,7 +185,9 @@ void JobQueue::shutdown() void JobQueue::setThreadCount(int c) { // set the number of thread serving the job queue to precisely this number - if (c == 0) + if (theConfig.RUN_STANDALONE) + c = 1; + else if (c == 0) { c = boost::thread::hardware_concurrency(); if (c < 2)