fix bug that disabled rarest-first piece picking. introduced when removing speed-affinity in the piece picker
This commit is contained in:
parent
fd3b53604c
commit
e9c0fc8eb5
|
@ -856,11 +856,15 @@ namespace libtorrent
|
|||
}
|
||||
else if (t->num_have() < m_settings.get_int(settings_pack::initial_picker_threshold))
|
||||
{
|
||||
// if we have fewer pieces than a certain threshols
|
||||
// if we have fewer pieces than a certain threshold
|
||||
// don't pick rare pieces, just pick random ones,
|
||||
// and prioritize finishing them
|
||||
ret |= piece_picker::prioritize_partials;
|
||||
}
|
||||
else
|
||||
{
|
||||
ret |= piece_picker::rarest_first;
|
||||
}
|
||||
|
||||
if (m_snubbed)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue