mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
(trunk libT) #3675 "Not all .part files are removed" -- flush the cache before removing local data.
This commit is contained in:
parent
f1e236693d
commit
d40a60bd02
1 changed files with 1 additions and 0 deletions
|
@ -2695,6 +2695,7 @@ tr_torrentDeleteLocalData( tr_torrent * tor, tr_fileFunc fileFunc )
|
|||
fileFunc = remove;
|
||||
|
||||
/* close all the files because we're about to delete them */
|
||||
tr_cacheFlushTorrent( tor->session->cache, tor );
|
||||
tr_fdTorrentClose( tor->session, tor->uniqueId );
|
||||
|
||||
if( tor->info.fileCount > 1 )
|
||||
|
|
Loading…
Reference in a new issue