mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +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:
@@ -1625,7 +1625,8 @@ addTorrentImpl (struct tr_rpc_idle_data * data, tr_ctor * ctor)
|
|||||||
tr_variantListAddStr (&fields, "name");
|
tr_variantListAddStr (&fields, "name");
|
||||||
tr_variantListAddStr (&fields, "hashString");
|
tr_variantListAddStr (&fields, "hashString");
|
||||||
addInfo (tor, tr_variantDictAdd (data->args_out, key), &fields);
|
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);
|
tr_variantFree (&fields);
|
||||||
result = NULL;
|
result = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user