rare request optimization
This commit is contained in:
parent
22da6b5901
commit
d51bdc0ec0
|
@ -2132,6 +2132,12 @@ namespace libtorrent
|
|||
r.length = block_size;
|
||||
|
||||
m_request_queue.pop_front();
|
||||
if (t->is_seed()) continue;
|
||||
// this can happen if a block times out, is re-requested and
|
||||
// then arrives "unexpectedly"
|
||||
if (t->picker().is_finished(block) || t->picker().is_downloaded(block))
|
||||
continue;
|
||||
|
||||
m_download_queue.push_back(block);
|
||||
/*
|
||||
#ifdef TORRENT_VERBOSE_LOGGING
|
||||
|
|
Loading…
Reference in New Issue