Changeset 1163


Ignore:
Timestamp:
Dec 7, 2006, 12:50:32 AM (15 years ago)
Author:
livings124
Message:

locking a locked lock is silly

and now T supports announce-lists without crashing

Location:
branches/multitracker/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/multitracker/libtransmission/tracker.c

    r1161 r1163  
    100100static void setAnnounce( tr_tracker_t * tc, tr_announce_list_item_t * announceItem )
    101101{
    102     tr_lockLock( &tc->tor->lock );
    103    
    104102    tr_setTorrentAnnounce( &tc->tor->info, announceItem);
    105103    tc->dateScrape = 0;
    106    
    107     tr_lockUnlock( &tc->tor->lock );
    108104}
    109105
     
    120116    /* If more tiers then announce can definitely be changed */
    121117    if( tc->announceTier + 1 < inf->trackerAnnounceTiers)
    122         return;
     118    {
     119        return;
     120    }
    123121   
    124122    /* If there are no more trackers don't try to change the announce */
     
    250248        if( tc->shouldChangeAnnounce )
    251249        {
    252             tr_err( "Tracker: %s failed to connect, trying next", inf->trackerAddress );
     250            tr_inf( "Tracker: %s failed to connect, trying next", inf->trackerAddress );
    253251           
    254252            announceItem = inf->trackerAnnounceList[tc->announceTier];
     
    274272            }
    275273           
     274            tr_inf( "Tracker: tracker address set to %s", inf->trackerAnnounceList[tc->announceTier]->address );
    276275            setAnnounce( tc, inf->trackerAnnounceList[tc->announceTier] );
    277276            tc->shouldChangeAnnounce = 0;
  • branches/multitracker/libtransmission/transmission.c

    r1160 r1163  
    575575}
    576576
    577 /* Must lock torrent before use */
    578577void tr_setTorrentAnnounce( tr_info_t * inf, tr_announce_list_item_t * announceItem )
    579578{
Note: See TracChangeset for help on using the changeset viewer.