fixed infinite loop when using avoid_readback cache eviction algorithm

This commit is contained in:
Arvid Norberg 2011-03-20 17:08:18 +00:00
parent 1b34fdb426
commit 836de5d338
1 changed files with 2 additions and 0 deletions

View File

@ -426,6 +426,8 @@ namespace libtorrent
// number for next_block_to_hash, if we're in avoid_readback mode
if (m_settings.disk_cache_algorithm != session_settings::avoid_readback)
widx.erase(i++);
else
++i;
}
if (m_settings.explicit_read_cache) return;