Changeset 1244


Ignore:
Timestamp:
Dec 17, 2006, 5:23:21 PM (15 years ago)
Author:
livings124
Message:

use existing variable and remove redundant call

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.c

    r1243 r1244  
    477477    s->cannotConnect = tr_trackerCannotConnect( tc );
    478478   
    479     if( tor->tracker )
    480     {
    481         s->trackerAddress  = tr_trackerAddress(  tor->tracker );
    482         s->trackerPort     = tr_trackerPort(     tor->tracker );
    483         s->trackerAnnounce = tr_trackerAnnounce( tor->tracker );
     479    if( tc )
     480    {
     481        s->trackerAddress  = tr_trackerAddress(  tc );
     482        s->trackerPort     = tr_trackerPort(     tc );
     483        s->trackerAnnounce = tr_trackerAnnounce( tc );
    484484    }
    485485    else
     
    536536    s->seeders  = tr_trackerSeeders( tc );
    537537    s->leechers = tr_trackerLeechers( tc );
    538     s->completedFromTracker = tr_trackerDownloaded( tor->tracker );
    539     s->completedFromTracker = tr_trackerDownloaded(tor->tracker);
     538    s->completedFromTracker = tr_trackerDownloaded( tc );
    540539
    541540    s->swarmspeed = tr_rcRate( tor->swarmspeed );
Note: See TracChangeset for help on using the changeset viewer.