summaryrefslogtreecommitdiff
path: root/src/FileAllocationCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FileAllocationCommand.cc')
-rw-r--r--src/FileAllocationCommand.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/FileAllocationCommand.cc b/src/FileAllocationCommand.cc
index ae9750cf..c334b0c5 100644
--- a/src/FileAllocationCommand.cc
+++ b/src/FileAllocationCommand.cc
@@ -52,9 +52,7 @@ bool FileAllocationCommand::executeInternal()
_e->commands.push_back(_fileAllocationEntry->getNextDownloadCommand());
_fileAllocationEntry->setNextDownloadCommand(0);
} else {
- int32_t numCommandsToGenerate = 15;
- Commands commands = _requestGroup->getNextCommand(_e, numCommandsToGenerate);
-
+ Commands commands = _requestGroup->createNextCommand(_e);
Command* command = InitiateConnectionCommandFactory::createInitiateConnectionCommand(cuid, _req, _requestGroup, _e);
commands.push_front(command);