File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ namespace AppInstaller::CLI::Execution
5858 const auto supportedConcurrentThreads = std::thread::hardware_concurrency ();
5959 const UINT32 maxDownloadThreads = 3 ;
6060 const UINT32 operationThreads = 1 ;
61- const UINT32 downloadThreads = std::min (supportedConcurrentThreads ? supportedConcurrentThreads - 1 : 1 , maxDownloadThreads);
61+ const UINT32 downloadThreads = std::min (supportedConcurrentThreads > 1 ? supportedConcurrentThreads - 1 : 1 , maxDownloadThreads);
6262
6363 AddCommandQueue (COMDownloadCommand::CommandName, downloadThreads);
6464 AddCommandQueue (OperationCommandQueueName, operationThreads);
@@ -207,8 +207,8 @@ namespace AppInstaller::CLI::Execution
207207 SetThreadpoolCallbackPool (&m_threadPoolCallbackEnviron, m_threadPool.get ());
208208 SetThreadpoolCallbackCleanupGroup (&m_threadPoolCallbackEnviron, m_threadPoolCleanupGroup.get (), nullptr );
209209
210- THROW_LAST_ERROR_IF (!SetThreadpoolThreadMinimum (m_threadPool.get (), 1 ));
211210 SetThreadpoolThreadMaximum (m_threadPool.get (), m_allowedThreads);
211+ THROW_LAST_ERROR_IF (!SetThreadpoolThreadMinimum (m_threadPool.get (), 1 ));
212212 }
213213
214214 OrchestratorQueue::~OrchestratorQueue ()
You can’t perform that action at this time.
0 commit comments