summaryrefslogtreecommitdiff
path: root/src/CheckIntegrityCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-06-03 14:24:37 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-06-03 14:24:37 +0000
commit453e2f10dddf3b158de39810c1130203fd8d67eb (patch)
treeccf06455843aa4fac0d54495de3fb87c254b28cd /src/CheckIntegrityCommand.cc
parentccdd5b31a3dfa07cd13d6f7f0f5eaa3d8ff8a61e (diff)
2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
RequestGroup::getNextCommand() was renamed to createNextCommand(). Added its overloaded method. * src/RequestGroup.h (_numConcurrentCommand): New variable. (setNumConcurrentCommand): New function. * src/RequestGroup.cc Abort download if same file is being downloaded concurrently. * src/RequestGroup.h, src/RequestGroupMan.cc (isSameFileBeingDownloaded): New function. * src/HttpResponseCommand.cc (executeInternal) * src/FtpNegotiateCommand.cc (recvSize) * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition. * main.cc: Added help message for -i option.
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);