forked from premiere/premiere-libtorrent
fix write cache flush issue
This commit is contained in:
parent
68e9b06358
commit
24186f219a
|
@ -2120,7 +2120,7 @@ namespace libtorrent
|
|||
, l, m_settings.write_cache_line_size
|
||||
, m_settings.disk_cache_algorithm == session_settings::avoid_readback);
|
||||
|
||||
if (p->num_blocks == 0) idx.erase(p);
|
||||
if (p->num_blocks == 0 && p->next_block_to_hash == 0) idx.erase(p);
|
||||
test_error(j);
|
||||
TORRENT_ASSERT(!j.storage->error());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue