removed invalid assert

This commit is contained in:
Arvid Norberg 2010-08-13 15:55:52 +00:00
parent ac3444c71e
commit 0f8d75c607
1 changed files with 3 additions and 1 deletions

View File

@ -5064,7 +5064,9 @@ namespace libtorrent
if (m_received_in_piece && i == m_download_queue.begin())
{
in_download_queue = true;
TORRENT_ASSERT(t->to_req(i->block).length >= m_received_in_piece);
// this assert is not correct since block may have different sizes
// and may not be returned in the order they were requested
// TORRENT_ASSERT(t->to_req(i->block).length >= m_received_in_piece);
outstanding_bytes += t->to_req(i->block).length - m_received_in_piece;
}
else