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 )