Ignore:
Timestamp:
Sep 25, 2010, 12:34:15 AM (11 years ago)
Author:
Longinus00
Message:

(libT) #3453:Torrent does not stop when set per torrent seed ratio is reached before torrent is completed
(libT) #3578:Interested flag isn't cleared when transitioning from leeching to seeding

File:
1 edited

Legend:

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

    r11241 r11264  
    23852385**/
    23862386
     2387void
     2388tr_peerMgrClearInterest( tr_torrent * tor )
     2389{
     2390    int i;
     2391    Torrent * t;
     2392    int peerCount;
     2393
     2394    assert( tr_isTorrent( tor ) );
     2395
     2396    t = tor->torrentPeers;
     2397
     2398    torrentLock( t );
     2399
     2400    peerCount = tr_ptrArraySize( &t->peers );
     2401
     2402    for( i=0; i<peerCount; ++i )
     2403    {
     2404        const tr_peer * peer = tr_ptrArrayNth( &t->peers, i );
     2405        tr_peerMsgsSetInterested( peer->msgs, FALSE );
     2406    }
     2407
     2408    torrentUnlock( t );
     2409}
     2410
    23872411/* do we still want this piece and does the peer have it? */
    23882412static tr_bool
Note: See TracChangeset for help on using the changeset viewer.