try to free the piece after kicking the hasher and flushing
This commit is contained in:
parent
e8f93df700
commit
d405535a3f
|
@ -939,6 +939,8 @@ namespace libtorrent
|
|||
kick_hasher(pe, l);
|
||||
num -= try_flush_hashed(pe, 1, completed_jobs, l);
|
||||
--pe->piece_refcount;
|
||||
|
||||
m_disk_cache.maybe_free_piece(pe);
|
||||
}
|
||||
|
||||
// when the write cache is under high pressure, it is likely
|
||||
|
|
Loading…
Reference in New Issue