Changeset 929


Ignore:
Timestamp:
Sep 26, 2006, 11:16:40 AM (15 years ago)
Author:
titer
Message:

Don't attach peers to inactive torrents (should fix the CLOSE_WAIT connection leaks)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.c

    r926 r929  
    829829                {
    830830                    tr_lockLock( &tor->lock );
     831                    if( tor->status & TR_STATUS_INACTIVE )
     832                    {
     833                        tr_lockUnlock( &tor->lock );
     834                        continue;
     835                    }
     836
    831837                    if( 0 == memcmp( tor->info.hash, hash,
    832838                                     SHA_DIGEST_LENGTH ) )
Note: See TracChangeset for help on using the changeset viewer.