fixed infinite loop when using avoid_readback cache eviction algorithm
This commit is contained in:
parent
1b34fdb426
commit
836de5d338
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue