From d40a60bd0227aeb175745039444be6a386b2ac1d Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 15 Dec 2010 20:28:49 +0000 Subject: [PATCH] (trunk libT) #3675 "Not all .part files are removed" -- flush the cache before removing local data. --- libtransmission/torrent.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index d42459679..8fecdaedc 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -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 )