diff options
Diffstat (limited to 'src/RpcMethodImpl.cc')
| -rw-r--r-- | src/RpcMethodImpl.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/RpcMethodImpl.cc b/src/RpcMethodImpl.cc index e8fccd62..5d6e8202 100644 --- a/src/RpcMethodImpl.cc +++ b/src/RpcMethodImpl.cc @@ -1592,10 +1592,14 @@ void changeGlobalOption(const Option& option, DownloadEngine* e) option.getAsInt(PREF_MAX_OVERALL_UPLOAD_LIMIT)); } if (option.defined(PREF_MAX_CONCURRENT_DOWNLOADS)) { - e->getRequestGroupMan()->setMaxSimultaneousDownloads( + e->getRequestGroupMan()->setMaxConcurrentDownloads( option.getAsInt(PREF_MAX_CONCURRENT_DOWNLOADS)); e->getRequestGroupMan()->requestQueueCheck(); } + if(option.defined(PREF_OPTIMIZE_CONCURRENT_DOWNLOADS)) { + e->getRequestGroupMan()->setupOptimizeConcurrentDownloads(); + e->getRequestGroupMan()->requestQueueCheck(); + } if (option.defined(PREF_MAX_DOWNLOAD_RESULT)) { e->getRequestGroupMan()->setMaxDownloadResult( option.getAsInt(PREF_MAX_DOWNLOAD_RESULT)); |
