1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

(trunk libT) #3675 "Not all .part files are removed" -- flush the cache before removing local data.

This commit is contained in:
Charles Kerr 2010-12-15 20:28:49 +00:00
parent f1e236693d
commit d40a60bd02

View file

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