removed invalid assert

This commit is contained in:
Arvid Norberg
2011-04-16 19:25:39 +00:00
parent 554812f0ab
commit e2d3e7c300

View File

@@ -2118,8 +2118,9 @@ namespace libtorrent
int prio = p.priority(this);
TORRENT_ASSERT(prio < int(m_priority_boundries.size())
|| m_dirty);
TORRENT_ASSERT(prio >= 0);
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);
downloading_piece& dp = add_download_piece();