removed invalid assert
This commit is contained in:
parent
554812f0ab
commit
e2d3e7c300
|
@ -2118,8 +2118,9 @@ namespace libtorrent
|
||||||
int prio = p.priority(this);
|
int prio = p.priority(this);
|
||||||
TORRENT_ASSERT(prio < int(m_priority_boundries.size())
|
TORRENT_ASSERT(prio < int(m_priority_boundries.size())
|
||||||
|| m_dirty);
|
|| m_dirty);
|
||||||
TORRENT_ASSERT(prio >= 0);
|
|
||||||
p.downloading = 1;
|
p.downloading = 1;
|
||||||
|
// prio being -1 can happen if a block is requested before
|
||||||
|
// the piece priority was set to 0
|
||||||
if (prio >= 0 && !m_dirty) update(prio, p.index);
|
if (prio >= 0 && !m_dirty) update(prio, p.index);
|
||||||
|
|
||||||
downloading_piece& dp = add_download_piece();
|
downloading_piece& dp = add_download_piece();
|
||||||
|
|
Loading…
Reference in New Issue