summaryrefslogtreecommitdiff
path: root/src/CreateRequestCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CreateRequestCommand.cc')
-rw-r--r--src/CreateRequestCommand.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CreateRequestCommand.cc b/src/CreateRequestCommand.cc
index c7373fc7..2a8dfad0 100644
--- a/src/CreateRequestCommand.cc
+++ b/src/CreateRequestCommand.cc
@@ -72,7 +72,9 @@ bool CreateRequestCommand::executeInternal()
(getSegments().front()->getPositionToWrite()));
}
std::vector<std::pair<size_t, std::string> > usedHosts;
- getDownloadEngine()->getRequestGroupMan()->getUsedHosts(usedHosts);
+ if(getOption()->getAsBool(PREF_SELECT_LEAST_USED_HOST)) {
+ getDownloadEngine()->getRequestGroupMan()->getUsedHosts(usedHosts);
+ }
setRequest
(getFileEntry()->getRequest(getRequestGroup()->getURISelector(),
getOption()->getAsBool(PREF_REUSE_URI),