Ignore:
Timestamp:
Apr 29, 2015, 7:42:05 PM (6 years ago)
Author:
mikedld
Message:

#5937: Don't send TR_RPC_TORRENT_ADDED notification if torrent wasn't actually added (patch by xzcvczx)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpcimpl.c

    r14428 r14517  
    16261626      tr_variantListAddStr (&fields, "hashString");
    16271627      addInfo (tor, tr_variantDictAdd (data->args_out, key), &fields);
    1628       notify (data->session, TR_RPC_TORRENT_ADDED, tor);
     1628      if (result == NULL)
     1629        notify (data->session, TR_RPC_TORRENT_ADDED, tor);
    16291630      tr_variantFree (&fields);
    16301631      result = NULL;
Note: See TracChangeset for help on using the changeset viewer.