removed invalid assert
This commit is contained in:
parent
ac3444c71e
commit
0f8d75c607
|
@ -5064,7 +5064,9 @@ namespace libtorrent
|
||||||
if (m_received_in_piece && i == m_download_queue.begin())
|
if (m_received_in_piece && i == m_download_queue.begin())
|
||||||
{
|
{
|
||||||
in_download_queue = true;
|
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;
|
outstanding_bytes += t->to_req(i->block).length - m_received_in_piece;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue