From 16f25e1158699a9da0a18ff779b322fae096fd2e Mon Sep 17 00:00:00 2001 From: Yat Ho Date: Fri, 16 Feb 2024 22:28:37 +0800 Subject: [PATCH] fixup! perf: restore `3.00` wishlist with cached candidates (#6549) (#6604) --- libtransmission/peer-mgr.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libtransmission/peer-mgr.cc b/libtransmission/peer-mgr.cc index 9e5363e70..fc0550960 100644 --- a/libtransmission/peer-mgr.cc +++ b/libtransmission/peer-mgr.cc @@ -1260,6 +1260,7 @@ std::vector tr_peerMgrGetNextRequests(tr_torrent* torrent, tr_p { swarm.wishlist = std::make_unique(std::make_unique(swarm)); } + swarm.update_endgame(); return swarm.wishlist->next( numwant, [peer](tr_piece_index_t p) { return peer->hasPiece(p); },