diff options
Diffstat (limited to 'src/BtFileAllocationEntry.cc')
| -rw-r--r-- | src/BtFileAllocationEntry.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/BtFileAllocationEntry.cc b/src/BtFileAllocationEntry.cc index c6b2057d..834a318e 100644 --- a/src/BtFileAllocationEntry.cc +++ b/src/BtFileAllocationEntry.cc @@ -55,13 +55,15 @@ BtFileAllocationEntry::~BtFileAllocationEntry() {} void BtFileAllocationEntry::prepareForNextAction (std::vector<Command*>& commands, DownloadEngine* e) { - BtSetup().setup(commands, _requestGroup, e, _requestGroup->getOption().get()); - if(!_requestGroup->downloadFinished()) { - _requestGroup->getDownloadContext()->resetDownloadStartTime(); + BtSetup().setup(commands, getRequestGroup(), e, + getRequestGroup()->getOption().get()); + if(!getRequestGroup()->downloadFinished()) { + getRequestGroup()->getDownloadContext()->resetDownloadStartTime(); const std::vector<SharedHandle<FileEntry> >& fileEntries = - _requestGroup->getDownloadContext()->getFileEntries(); - if(isUriSuppliedForRequsetFileEntry(fileEntries.begin(), fileEntries.end())) { - _requestGroup->createNextCommandWithAdj(commands, e, 0); + getRequestGroup()->getDownloadContext()->getFileEntries(); + if(isUriSuppliedForRequsetFileEntry + (fileEntries.begin(), fileEntries.end())) { + getRequestGroup()->createNextCommandWithAdj(commands, e, 0); } } } |
