forked from premiere/premiere-libtorrent
fix related to piece priorities
This commit is contained in:
parent
776b399a97
commit
00a7546f7e
|
@ -548,8 +548,15 @@ namespace libtorrent
|
||||||
piece_pos& p = m_piece_map[index];
|
piece_pos& p = m_piece_map[index];
|
||||||
int priority = p.priority(m_sequenced_download_threshold);
|
int priority = p.priority(m_sequenced_download_threshold);
|
||||||
p.downloading = 0;
|
p.downloading = 0;
|
||||||
|
if (priority == 0)
|
||||||
|
{
|
||||||
|
add(index);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
move(priority, p.index);
|
move(priority, p.index);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void piece_picker::inc_refcount(int i)
|
void piece_picker::inc_refcount(int i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue