Changeset 10194


Ignore:
Timestamp:
Feb 14, 2010, 3:28:54 AM (12 years ago)
Author:
charles
Message:

(trunk libT) #2850 "tr_torrentSetAnnounceList() should not trigger reannounces to trackers" -- tweak to r10193

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r10193 r10194  
    297297}
    298298tr_tracker_item;
     299
     300static void
     301trackerItemCopyAttributes( tr_tracker_item * t, const tr_tracker_item * o )
     302{
     303    assert( t != o );
     304    assert( t != NULL );
     305    assert( o != NULL );
     306
     307    t->seederCount = o->seederCount;
     308    t->leecherCount = o->leecherCount;
     309    t->downloadCount = o->downloadCount;
     310    t->downloaderCount = o->downloaderCount;
     311    t->id = o->id;
     312    memcpy( t->key_param, o->key_param, sizeof( t->key_param ) );
     313}
    299314
    300315static void
     
    848863                    t->currentTracker = item;
    849864                    t->currentTrackerIndex = k;
     865                    trackerItemCopyAttributes( item, o->currentTracker );
    850866                    dbgmsg( t, "attributes copied to tier %d, tracker %d"
    851867                                               "from tier %d, tracker %d",
Note: See TracChangeset for help on using the changeset viewer.