(trunk libT) by request, add a clientData argument to tr_torrentDeleteLocalData()

This commit is contained in:
Charles Kerr
2009-12-09 03:40:35 +00:00
parent c5af8965e0
commit 5f9f97ee2a
4 changed files with 32 additions and 18 deletions

View File

@@ -239,7 +239,7 @@ torrentRemove( tr_session * session,
const tr_rpc_callback_status status = notify( session, TR_RPC_TORRENT_REMOVING, tor );
tr_bool deleteFlag;
if( tr_bencDictFindBool( args_in, "delete-local-data", &deleteFlag ) && deleteFlag )
tr_torrentDeleteLocalData( tor, NULL );
tr_torrentDeleteLocalData( tor, NULL, NULL );
if( !( status & TR_RPC_NOREMOVE ) )
tr_torrentRemove( tor );
}