fix build

This commit is contained in:
Arvid Norberg 2012-05-13 04:37:31 +00:00
parent 6737374c59
commit 2ca32646b9
1 changed files with 6 additions and 2 deletions

View File

@ -2894,8 +2894,12 @@ namespace libtorrent
std::vector<pending_block>::iterator rit = std::find_if(m_request_queue.begin()
, m_request_queue.end(), has_block(block));
if (rit == m_request_queue.end()) return;
TORRENT_ASSERT(has_picker());
TORRENT_ASSERT(m_picker->is_requested(block));
#if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS
boost::shared_ptr<torrent> t = m_torrent.lock();
TORRENT_ASSERT(t);
TORRENT_ASSERT(t->has_picker());
TORRENT_ASSERT(t->picker().is_requested(block));
#endif
// ignore it if it's already time critical
if (rit - m_request_queue.begin() < m_queued_time_critical) return;
pending_block b = *rit;