Changeset 9879


Ignore:
Timestamp:
Jan 4, 2010, 10:55:18 PM (12 years ago)
Author:
charles
Message:

(1.7x libT) backport to 1.7x branch: r9687 #2651 "missing errmsg in RPC torrentSet"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.7x/libtransmission/rpcimpl.c

    r8889 r9879  
    736736            if( tr_isPriority( tmp ) )
    737737                tr_torrentSetPriority( tor, tmp );
    738         if( tr_bencDictFindList( args_in, "files-unwanted", &files ) )
    739             setFileDLs( tor, FALSE, files );
    740         if( tr_bencDictFindList( args_in, "files-wanted", &files ) )
    741             setFileDLs( tor, TRUE, files );
     738        if( !errmsg && tr_bencDictFindList( args_in, "files-unwanted", &files ) )
     739            errmsg = setFileDLs( tor, FALSE, files );
     740        if( !errmsg && tr_bencDictFindList( args_in, "files-wanted", &files ) )
     741            errmsg = setFileDLs( tor, TRUE, files );
    742742        if( tr_bencDictFindInt( args_in, "peer-limit", &tmp ) )
    743743            tr_torrentSetPeerLimit( tor, tmp );
Note: See TracChangeset for help on using the changeset viewer.