diff options
Diffstat (limited to 'src/CreateRequestCommand.cc')
| -rw-r--r-- | src/CreateRequestCommand.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/CreateRequestCommand.cc b/src/CreateRequestCommand.cc index bcac77aa..15dd3431 100644 --- a/src/CreateRequestCommand.cc +++ b/src/CreateRequestCommand.cc @@ -47,6 +47,10 @@ #include "SleepCommand.h" #include "Logger.h" #include "util.h" +#include "RequestGroupMan.h" +#include "FileAllocationEntry.h" +#include "CheckIntegrityEntry.h" +#include "ServerStatMan.h" namespace aria2 { @@ -95,7 +99,7 @@ bool CreateRequestCommand::executeInternal() InitiateConnectionCommandFactory::createInitiateConnectionCommand (cuid, req, _fileEntry, _requestGroup, e); e->setNoWait(true); - e->commands.push_back(command); + e->addCommand(command); return true; } @@ -117,7 +121,7 @@ bool CreateRequestCommand::prepareForRetry(time_t wait) util::itos(cuid).c_str()); } SleepCommand* scom = new SleepCommand(cuid, e, _requestGroup, this, wait); - e->commands.push_back(scom); + e->addCommand(scom); return false; } |
