From f702374db3a7e5d899e4e6468a6e1f50edb1440f Mon Sep 17 00:00:00 2001 From: Simon Walton Date: Tue, 22 May 2018 10:16:44 -0700 Subject: [PATCH] Just have one const for concurrent downloads --- interface/src/Application.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 9b9914e261..85391a8acf 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -335,7 +335,7 @@ static bool DISABLE_DEFERRED = QProcessEnvironment::systemEnvironment().contains #if !defined(Q_OS_ANDROID) static const int MAX_CONCURRENT_RESOURCE_DOWNLOADS = 16; #else -static const int MAX_CONCURRENT_RESOURCE_DOWNLOADS_LOWEND = 4; +static const int MAX_CONCURRENT_RESOURCE_DOWNLOADS = 4; #endif // For processing on QThreadPool, we target a number of threads after reserving some @@ -1318,11 +1318,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo bool success; int concurrentDownloads = concurrentDownloadsStr.toInt(&success); if (!success) { -#if !defined(Q_OS_ANDROID) concurrentDownloads = MAX_CONCURRENT_RESOURCE_DOWNLOADS; -#else - concurrentDownloads = MAX_CONCURRENT_RESOURCE_DOWNLOADS_LOWEND; -#endif } ResourceCache::setRequestLimit(concurrentDownloads);