Changeset 9725


Ignore:
Timestamp:
Dec 12, 2009, 4:12:04 AM (12 years ago)
Author:
charles
Message:

(trunk libT) remove the test for duplicate trackers in the announce list.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r9704 r9725  
    20852085                           int                     trackerCount )
    20862086{
    2087     int i, j;
     2087    int i;
    20882088    tr_benc metainfo;
    20892089
     
    20942094        if( !tr_httpIsValidURL( trackers[i].announce ) )
    20952095            return TR_ANNOUNCE_LIST_HAS_BAD;
    2096 
    2097     /* look for duplicates */
    2098     for( i=0; i<trackerCount; ++i )
    2099         for( j=0; j<trackerCount; ++j )
    2100             if( ( i != j ) && ( !strcmp( trackers[i].announce, trackers[j].announce ) ) )
    2101                 return TR_ANNOUNCE_LIST_HAS_DUPLICATES;
    21022096
    21032097    /* save to the .torrent file */
  • trunk/libtransmission/transmission.h

    r9691 r9725  
    12031203{
    12041204  TR_ANNOUNCE_LIST_OK,
    1205   TR_ANNOUNCE_LIST_HAS_DUPLICATES,
    12061205  TR_ANNOUNCE_LIST_HAS_BAD
    12071206}
Note: See TracChangeset for help on using the changeset viewer.