diff options
Diffstat (limited to 'src/FtpDownloadCommand.cc')
| -rw-r--r-- | src/FtpDownloadCommand.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/FtpDownloadCommand.cc b/src/FtpDownloadCommand.cc index 8d4cc556..cb735f3a 100644 --- a/src/FtpDownloadCommand.cc +++ b/src/FtpDownloadCommand.cc @@ -70,9 +70,12 @@ FtpDownloadCommand::~FtpDownloadCommand() {} bool FtpDownloadCommand::prepareForNextSegment() { if(getOption()->getAsBool(PREF_FTP_REUSE_CONNECTION) && - static_cast<uint64_t>(_fileEntry->gtoloff(_segments.front()->getPositionToWrite())) == _fileEntry->getLength()) { + static_cast<uint64_t> + (_fileEntry->gtoloff(_segments.front()->getPositionToWrite())) == + _fileEntry->getLength()) { Command* command = new FtpFinishDownloadCommand - (cuid, req, _fileEntry, _requestGroup, _ftpConnection, e, ctrlSocket); + (getCuid(), req, _fileEntry, _requestGroup, _ftpConnection, e, + ctrlSocket); e->addCommand(command); if(_requestGroup->downloadFinished()) { |
