summaryrefslogtreecommitdiff
path: root/src/CreateRequestCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CreateRequestCommand.cc')
-rw-r--r--src/CreateRequestCommand.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/CreateRequestCommand.cc b/src/CreateRequestCommand.cc
index 014b8a0b..81003541 100644
--- a/src/CreateRequestCommand.cc
+++ b/src/CreateRequestCommand.cc
@@ -70,7 +70,8 @@ bool CreateRequestCommand::executeInternal()
(_segments.front()->getPositionToWrite());
}
if(_fileEntry->getRemainingUris().empty() &&
- getOption()->getAsBool(PREF_REUSE_URI)) {
+ getOption()->getAsBool(PREF_REUSE_URI) &&
+ _fileEntry->countPooledRequest() == 0) {
_fileEntry->reuseUri(_requestGroup->getNumConcurrentCommand());
}
req = _fileEntry->getRequest(_requestGroup->getURISelector(),