diff options
Diffstat (limited to 'src/BtFileAllocationEntry.cc')
| -rw-r--r-- | src/BtFileAllocationEntry.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/BtFileAllocationEntry.cc b/src/BtFileAllocationEntry.cc index b3c72525..3a5e9b9c 100644 --- a/src/BtFileAllocationEntry.cc +++ b/src/BtFileAllocationEntry.cc @@ -46,8 +46,9 @@ BtFileAllocationEntry::~BtFileAllocationEntry() {} Commands BtFileAllocationEntry::prepareForNextAction(DownloadEngine* e) { Commands commands = BtSetup().setup(_requestGroup, e, e->option); - // TODO don't integerate http/ftp when multi-file torrent - Commands streamCommands = _requestGroup->createNextCommandWithAdj(e, 0); - copy(streamCommands.begin(), streamCommands.end(), back_inserter(commands)); + if(!_requestGroup->downloadFinished()) { + Commands streamCommands = _requestGroup->createNextCommandWithAdj(e, 0); + copy(streamCommands.begin(), streamCommands.end(), back_inserter(commands)); + } return commands; } |
