This commit is contained in:
parent
41566cfd0b
commit
16f25e1158
|
@ -1260,6 +1260,7 @@ std::vector<tr_block_span_t> tr_peerMgrGetNextRequests(tr_torrent* torrent, tr_p
|
||||||
{
|
{
|
||||||
swarm.wishlist = std::make_unique<Wishlist>(std::make_unique<tr_swarm::WishlistMediator>(swarm));
|
swarm.wishlist = std::make_unique<Wishlist>(std::make_unique<tr_swarm::WishlistMediator>(swarm));
|
||||||
}
|
}
|
||||||
|
swarm.update_endgame();
|
||||||
return swarm.wishlist->next(
|
return swarm.wishlist->next(
|
||||||
numwant,
|
numwant,
|
||||||
[peer](tr_piece_index_t p) { return peer->hasPiece(p); },
|
[peer](tr_piece_index_t p) { return peer->hasPiece(p); },
|
||||||
|
|
Loading…
Reference in New Issue