1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +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:
Charles Kerr 2023-04-12 13:37:04 -05:00 committed by GitHub
parent 23c248a5e9
commit e33d9536ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1508,7 +1508,7 @@ void addTorrentImpl(struct tr_rpc_idle_data* data, tr_ctor* ctor)
tr_variantDictAdd(data->args_out, TR_KEY_torrent_duplicate), tr_variantDictAdd(data->args_out, TR_KEY_torrent_duplicate),
std::data(Fields), std::data(Fields),
std::size(Fields)); std::size(Fields));
tr_idle_function_done(data, "duplicate torrent"sv); tr_idle_function_done(data, SuccessResult);
return; return;
} }