mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(trunk) #1029: When removing local data only remove data from the torrent
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user