Changeset 8672


Ignore:
Timestamp:
Jun 11, 2009, 9:42:59 PM (13 years ago)
Author:
charles
Message:

(trunk libT) #2199: DHT should not announce stopped torrents

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r8592 r8672  
    12751275        if( !isVerifying )
    12761276            tr_verifyAdd( tor, checkAndStartCB );
     1277
     1278        tor->dhtAnnounceAt = time( NULL ) tr_cryptoWeakRandInt( 20 );
    12771279    }
    12781280
  • trunk/libtransmission/tracker.c

    r8583 r8672  
    980980        if( tor->dhtAnnounceAt <= now ) {
    981981            int rc = 1;
    982             if( tr_torrentAllowsDHT(tor) )
     982            if( tor->isRunning && tr_torrentAllowsDHT(tor) )
    983983                rc = tr_dhtAnnounce(tor, 1);
    984984            if(rc == 0)
Note: See TracChangeset for help on using the changeset viewer.