summaryrefslogtreecommitdiff
path: root/src/CheckIntegrityCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CheckIntegrityCommand.cc')
-rw-r--r--src/CheckIntegrityCommand.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/CheckIntegrityCommand.cc b/src/CheckIntegrityCommand.cc
index 51df08d3..3df57295 100644
--- a/src/CheckIntegrityCommand.cc
+++ b/src/CheckIntegrityCommand.cc
@@ -69,8 +69,7 @@ bool CheckIntegrityCommand::executeInternal()
_e->commands.push_back(_nextDownloadCommand);
_nextDownloadCommand = 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);
_e->addCommand(commands);