no longer expects requests to be handled in fifo order

This commit is contained in:
Arvid Norberg 2006-02-23 10:53:07 +00:00
parent 5ea9d2eab4
commit 410af930a7
1 changed files with 5 additions and 2 deletions

View File

@ -1020,6 +1020,7 @@ namespace libtorrent
if (b != m_download_queue.end())
{
/*
for (i = m_download_queue.begin();
i != b; ++i)
{
@ -1032,7 +1033,7 @@ namespace libtorrent
// be requested from other peers
picker.abort_download(*i);
}
*/
#ifdef TORRENT_VERBOSE_LOGGING
(*m_logger) << to_simple_string(second_clock::universal_time())
<< " <== PIECE [ piece: " << p.piece << " | "
@ -1040,12 +1041,14 @@ namespace libtorrent
"s: " << p.start << " | "
"l: " << p.length << " ]\n";
#endif
/*
// remove the request that just finished
// from the download queue plus the
// skipped blocks.
m_download_queue.erase(m_download_queue.begin()
, boost::next(b));
*/
m_download_queue.erase(b);
send_block_requests();
}
else