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