]> granicus.if.org Git - transmission/commit
(trunk) #3675 "Not all .part files are removed" -- handle trashing files via RPC.
authorJordan Lee <jordan@transmissionbt.com>
Sun, 6 Feb 2011 17:30:46 +0000 (17:30 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sun, 6 Feb 2011 17:30:46 +0000 (17:30 +0000)
commit1fabb9b9ea1fd98d97cb0b0977d9795d2cb20ac9
tree280afa6ee8799395c05857209bc77627569416c8
parent11c0517cc8b9739dbafe36dd620d11b5eab1de70
(trunk) #3675 "Not all .part files are removed" -- handle trashing files via RPC.

When libtransmission gets a "remove torrent" request from RPC, it tries to delegate the work. This is because the GTK+ and Mac clients don't want torrents disappearing in a different thread and causing possible thread issues. So the GTK+ and Mac clients get notification about this via libtransmission's RPC callback and remove the torrents themselves. Unfortunately, that notification doesn't include information about whether or not to delete local data.

This commit adds that information to the RPC callback so that the Mac and GTK+ clients will know whether or not to trash the local files when a third-party RPC client requests that at torrent and its files be deleted.
gtk/main.c
libtransmission/rpcimpl.c
libtransmission/transmission.h