diff options
Diffstat (limited to 'src/BtFileAllocationEntry.cc')
| -rw-r--r-- | src/BtFileAllocationEntry.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/BtFileAllocationEntry.cc b/src/BtFileAllocationEntry.cc index 19f70d8f..7d0b67cd 100644 --- a/src/BtFileAllocationEntry.cc +++ b/src/BtFileAllocationEntry.cc @@ -46,14 +46,13 @@ BtFileAllocationEntry::BtFileAllocationEntry(RequestGroup* requestGroup): BtFileAllocationEntry::~BtFileAllocationEntry() {} -Commands BtFileAllocationEntry::prepareForNextAction(DownloadEngine* e) +void BtFileAllocationEntry::prepareForNextAction(std::deque<Command*>& commands, + DownloadEngine* e) { - Commands commands = BtSetup().setup(_requestGroup, e, e->option); + BtSetup().setup(commands, _requestGroup, e, e->option); if(!_requestGroup->downloadFinished()) { - Commands streamCommands = _requestGroup->createNextCommandWithAdj(e, 0); - std::copy(streamCommands.begin(), streamCommands.end(), std::back_inserter(commands)); + _requestGroup->createNextCommandWithAdj(commands, e, 0); } - return commands; } } // namespace aria2 |
