summaryrefslogtreecommitdiff
path: root/src/StreamCheckIntegrityEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-08-24 23:16:06 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-08-24 23:16:06 +0900
commitc7ac14728730d683ca281f9b5dbbac9f3ceaeafa (patch)
treebfb4b6684db67bafe12706dce4599d5666630350 /src/StreamCheckIntegrityEntry.cc
parentb94bf3355b349f6d7824a1ab67c7a1d695e9314a (diff)
Added PieceStorage::onDownloadIncomplete() virtual function.
In DefaultPieceStorage::onDownloadIncomplete(), we call StreamPieceSelector::onBitfieldInit(). Added GeomStreamPieceSelectorTest.
Diffstat (limited to 'src/StreamCheckIntegrityEntry.cc')
-rw-r--r--src/StreamCheckIntegrityEntry.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/StreamCheckIntegrityEntry.cc b/src/StreamCheckIntegrityEntry.cc
index 3de23736..aeaf5e8c 100644
--- a/src/StreamCheckIntegrityEntry.cc
+++ b/src/StreamCheckIntegrityEntry.cc
@@ -38,6 +38,7 @@
#include "StreamFileAllocationEntry.h"
#include "prefs.h"
#include "Option.h"
+#include "PieceStorage.h"
namespace aria2 {
@@ -51,6 +52,8 @@ StreamCheckIntegrityEntry::~StreamCheckIntegrityEntry() {}
void StreamCheckIntegrityEntry::onDownloadIncomplete
(std::vector<Command*>& commands, DownloadEngine* e)
{
+ const SharedHandle<PieceStorage>& ps = getRequestGroup()->getPieceStorage();
+ ps->onDownloadIncomplete();
if(getRequestGroup()->getOption()->getAsBool(PREF_HASH_CHECK_ONLY)) {
return;
}