(trunk) #1029: When removing local data only remove data from the torrent

This commit is contained in:
Charles Kerr
2008-12-23 16:04:11 +00:00
parent fe7751c9d0
commit 303356d110
6 changed files with 183 additions and 40 deletions

View File

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