diff options
Diffstat (limited to 'src/CreateRequestCommand.cc')
| -rw-r--r-- | src/CreateRequestCommand.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/CreateRequestCommand.cc b/src/CreateRequestCommand.cc index 1845af7c..90cbc556 100644 --- a/src/CreateRequestCommand.cc +++ b/src/CreateRequestCommand.cc @@ -105,16 +105,15 @@ bool CreateRequestCommand::executeInternal() // counted (1 for pooled and another one in this command) and // AbstractCommand::execute() will behave badly. resetRequest(); - getDownloadEngine()->addCommand(this); + addCommandSelf(); return false; } - Command* command = - InitiateConnectionCommandFactory::createInitiateConnectionCommand - (getCuid(), getRequest(), getFileEntry(), getRequestGroup(), - getDownloadEngine()); getDownloadEngine()->setNoWait(true); - getDownloadEngine()->addCommand(command); + getDownloadEngine()->addCommand + (InitiateConnectionCommandFactory::createInitiateConnectionCommand + (getCuid(), getRequest(), getFileEntry(), getRequestGroup(), + getDownloadEngine())); return true; } |
