fix bug in piece picker where set_piece_priority would return false even though the piece filter changed and updated test_transfer to catch it
This commit is contained in:
@@ -1099,7 +1099,7 @@ namespace libtorrent
|
||||
p.piece_priority = new_piece_priority;
|
||||
int new_priority = p.priority(this);
|
||||
|
||||
if (prev_priority == new_priority) return false;
|
||||
if (prev_priority == new_priority) return ret;
|
||||
|
||||
TORRENT_ASSERT(prev_priority < int(m_priority_boundries.size()));
|
||||
|
||||
|
Reference in New Issue
Block a user