summaryrefslogtreecommitdiff
path: root/src/StreamCheckIntegrityEntry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/StreamCheckIntegrityEntry.cc')
-rw-r--r--src/StreamCheckIntegrityEntry.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/StreamCheckIntegrityEntry.cc b/src/StreamCheckIntegrityEntry.cc
index 2ba38983..22904c6b 100644
--- a/src/StreamCheckIntegrityEntry.cc
+++ b/src/StreamCheckIntegrityEntry.cc
@@ -50,23 +50,21 @@ StreamCheckIntegrityEntry::StreamCheckIntegrityEntry(const RequestHandle& curren
StreamCheckIntegrityEntry::~StreamCheckIntegrityEntry() {}
-Commands StreamCheckIntegrityEntry::onDownloadIncomplete(DownloadEngine* e)
+void StreamCheckIntegrityEntry::onDownloadIncomplete(std::deque<Command*>& commands,
+ DownloadEngine* e)
{
- Commands commands;
FileAllocationEntryHandle entry
(new StreamFileAllocationEntry(_currentRequest, _requestGroup,
popNextCommand()));
if(_requestGroup->needsFileAllocation()) {
e->_fileAllocationMan->pushFileAllocationEntry(entry);
} else {
- commands = entry->prepareForNextAction(e);
+ entry->prepareForNextAction(commands, e);
}
- return commands;
}
-Commands StreamCheckIntegrityEntry::onDownloadFinished(DownloadEngine* e)
-{
- return Commands();
-}
+void StreamCheckIntegrityEntry::onDownloadFinished(std::deque<Command*>& commands,
+ DownloadEngine* e)
+{}
} // namespace aria2