mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
#5937: Don't send TR_RPC_TORRENT_ADDED notification if torrent wasn't actually added (patch by xzcvczx)
This commit is contained in:
parent
9674df5c4d
commit
0c01e6e19d
1 changed files with 2 additions and 1 deletions
|
@ -1625,7 +1625,8 @@ addTorrentImpl (struct tr_rpc_idle_data * data, tr_ctor * ctor)
|
|||
tr_variantListAddStr (&fields, "name");
|
||||
tr_variantListAddStr (&fields, "hashString");
|
||||
addInfo (tor, tr_variantDictAdd (data->args_out, key), &fields);
|
||||
notify (data->session, TR_RPC_TORRENT_ADDED, tor);
|
||||
if (result == NULL)
|
||||
notify (data->session, TR_RPC_TORRENT_ADDED, tor);
|
||||
tr_variantFree (&fields);
|
||||
result = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue