mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +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;
|
fileFunc = remove;
|
||||||
|
|
||||||
/* close all the files because we're about to delete them */
|
/* close all the files because we're about to delete them */
|
||||||
|
tr_cacheFlushTorrent( tor->session->cache, tor );
|
||||||
tr_fdTorrentClose( tor->session, tor->uniqueId );
|
tr_fdTorrentClose( tor->session, tor->uniqueId );
|
||||||
|
|
||||||
if( tor->info.fileCount > 1 )
|
if( tor->info.fileCount > 1 )
|
||||||
|
|
Loading…
Reference in a new issue