mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
fix: return success on RPC add-torrent duplicate (#5370)
Keep Transmission 3's behavior to avoid unannounced API change
This commit is contained in:
parent
23c248a5e9
commit
e33d9536ef
1 changed files with 1 additions and 1 deletions
|
@ -1508,7 +1508,7 @@ void addTorrentImpl(struct tr_rpc_idle_data* data, tr_ctor* ctor)
|
|||
tr_variantDictAdd(data->args_out, TR_KEY_torrent_duplicate),
|
||||
std::data(Fields),
|
||||
std::size(Fields));
|
||||
tr_idle_function_done(data, "duplicate torrent"sv);
|
||||
tr_idle_function_done(data, SuccessResult);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue