add assert in web_peer_connection

This commit is contained in:
Arvid Norberg 2011-10-30 06:13:34 +00:00
parent 0f6b34c260
commit 9a91518b9a
1 changed files with 1 additions and 0 deletions

View File

@ -710,6 +710,7 @@ namespace libtorrent
incoming_piece(r, recv_buffer.begin);
m_requests.pop_front();
if (associated_torrent().expired()) return;
TORRENT_ASSERT(m_block_pos >= r.length);
m_block_pos -= r.length;
m_received_body += r.length;
TORRENT_ASSERT(receive_buffer().begin + m_body_start == recv_buffer.begin);