Changeset 10551


Ignore:
Timestamp:
Apr 29, 2010, 11:35:44 PM (11 years ago)
Author:
charles
Message:

(trunk libT) #1869 "New status for torrents that reached the seed ratio" -- maybe fix the bug where the incomplete-dir and seed-ratio features conflicted with each other as reported by leena in http://trac.transmissionbt.com/ticket/1869#comment:45

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r10528 r10551  
    941941}
    942942
    943 tr_torrent_activity
     943static tr_torrent_activity
    944944tr_torrentGetActivity( tr_torrent * tor )
    945945{
     
    17141714        tr_fdTorrentClose( tor->session, tor->uniqueId );
    17151715
    1716         /* if the torrent is a seed now,
    1717          * and the files used to be in the incompleteDir,
    1718          * then move them to the destination directory */
    1719         if( tr_torrentIsSeed( tor ) && ( tor->currentDir == tor->incompleteDir ) )
    1720             tr_torrentSetLocation( tor, tor->downloadDir, TRUE, NULL, NULL );
     1716        if( tr_torrentIsSeed( tor ) )
     1717        {
     1718            tr_torrentCheckSeedRatio( tor );
     1719
     1720            if( tor->currentDir == tor->incompleteDir )
     1721                tr_torrentSetLocation( tor, tor->downloadDir, TRUE, NULL, NULL );
     1722        }
    17211723
    17221724        fireCompletenessChange( tor, completeness );
Note: See TracChangeset for help on using the changeset viewer.