mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 21:47:37 +03:00
2010-08-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Pass excludedIndexes when getting metadata piece. * src/UTMetadataRequestFactory.cc * test/UTMetadataRequestFactoryTest.cc
This commit is contained in:
parent
e997903e5d
commit
4b2d1deff6
3 changed files with 11 additions and 2 deletions
|
@ -29,7 +29,8 @@ public:
|
|||
std::deque<size_t> missingIndexes;
|
||||
|
||||
virtual SharedHandle<Piece> getMissingPiece
|
||||
(const SharedHandle<Peer>& peer)
|
||||
(const SharedHandle<Peer>& peer,
|
||||
const std::vector<size_t>& exlucdedIndexes)
|
||||
{
|
||||
if(missingIndexes.empty()) {
|
||||
return SharedHandle<Piece>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue