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:
Arvid Norberg
2008-08-19 07:11:17 +00:00
parent 9266afe5f5
commit 893e9f2af6
2 changed files with 34 additions and 1 deletions

View File

@@ -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()));