try to free the piece after kicking the hasher and flushing

This commit is contained in:
Steven Siloti 2016-03-13 11:45:45 -07:00
parent e8f93df700
commit d405535a3f
1 changed files with 2 additions and 0 deletions

View File

@ -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