Changeset 5763


Ignore:
Timestamp:
May 6, 2008, 7:49:25 PM (14 years ago)
Author:
charles
Message:

#917: Another minor speedup suggested by BentMyWookie?. He enjoys giving new suggestions right *after* I hit "svn commit" :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r5762 r5763  
    17301730    /* if we're seeding and the peer has everything we have,
    17311731     * and enough time has passed for a pex exchange, then disconnect */
    1732     if( 1 ) {
    1733         const int clientIsSeed = tr_torrentIsSeed( tor );
     1732    if( tr_torrentIsSeed( tor ) ) {
    17341733        int peerHasEverything;
    17351734        if( atom->flags & ADDED_F_SEED_FLAG )
     
    17431742            tr_bitfieldFree( tmp );
    17441743        }
    1745         if( clientIsSeed && peerHasEverything && ( !tr_torrentAllowsPex(tor) || (now-atom->time>=30) ) ) {
     1744        if( peerHasEverything && ( !tr_torrentAllowsPex(tor) || (now-atom->time>=30) ) ) {
    17461745            tordbg( t, "purging peer %s because we're both seeds", tr_peerIoAddrStr(&atom->addr,atom->port) );
    17471746            return TRUE;
Note: See TracChangeset for help on using the changeset viewer.