diff --git a/libtransmission/announcer.c b/libtransmission/announcer.c index 89c6c3bde..98f04a074 100644 --- a/libtransmission/announcer.c +++ b/libtransmission/announcer.c @@ -1722,6 +1722,10 @@ tr_announcerStats( const tr_torrent * torrent, st->isBackup = tracker != tier->currentTracker; st->lastScrapeStartTime = tier->lastScrapeStartTime; + st->seederCount = tracker->seederCount; + st->leecherCount = tracker->leecherCount; + st->downloadCount = tracker->downloadCount; + if( st->isBackup ) { st->scrapeState = TR_TRACKER_INACTIVE; @@ -1770,10 +1774,6 @@ tr_announcerStats( const tr_torrent * torrent, } else st->announceState = TR_TRACKER_QUEUED; - - st->seederCount = tracker->seederCount; - st->leecherCount = tracker->leecherCount; - st->downloadCount = tracker->downloadCount; } } } diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index 63ff5633c..5b43bb61a 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -1792,7 +1792,6 @@ tr_peerMgrGetPeers( tr_torrent * tor, assert( tr_isTorrent( tor ) ); assert( setme_pex != NULL ); - assert( setme_pex != NULL ); assert( af==TR_AF_INET || af==TR_AF_INET6 ); assert( list_mode==TR_PEERS_CONNECTED || list_mode==TR_PEERS_ALL );