Changeset 10851


Ignore:
Timestamp:
Jun 25, 2010, 3:39:17 PM (12 years ago)
Author:
charles
Message:

(trunk libT) #3320 "If the seed ratio is already met" -- fix a bug in r10848 reported by BMW

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r10848 r10851  
    16171617fireCompletenessChange( tr_torrent       * tor,
    16181618                        tr_completeness    status,
    1619                         tr_bool            wasPaused )
     1619                        tr_bool            wasRunning )
    16201620{
    16211621    assert( tr_isTorrent( tor ) );
     
    16251625
    16261626    if( tor->completeness_func )
    1627         tor->completeness_func( tor, status, wasPaused,
     1627        tor->completeness_func( tor, status, wasRunning,
    16281628                                tor->completeness_func_user_data );
    16291629}
     
    17051705tr_torrentRecheckCompleteness( tr_torrent * tor )
    17061706{
    1707     tr_bool wasPaused;
     1707    tr_bool wasRunning;
    17081708    tr_completeness completeness;
    17091709
     
    17131713
    17141714    completeness = tr_cpGetStatus( &tor->completion );
    1715     wasPaused = tor->isRunning;
     1715    wasRunning = tor->isRunning;
    17161716
    17171717    if( completeness != tor->completeness )
     
    17461746        }
    17471747
    1748         fireCompletenessChange( tor, wasPaused, completeness );
     1748        fireCompletenessChange( tor, wasRunning, completeness );
    17491749
    17501750        tr_torrentSetDirty( tor );
  • trunk/libtransmission/transmission.h

    r10848 r10851  
    12761276
    12771277/**
    1278  * @param wasPaused whether or not the torrent was in a paused state when
    1279  *                  it changed its completeness state
     1278 * @param wasRunning whether or not the torrent was running when
     1279 *                   it changed its completeness state
    12801280 */
    12811281typedef void ( tr_torrent_completeness_func )( tr_torrent       * torrent,
    12821282                                               tr_completeness    completeness,
    1283                                                tr_bool            wasPaused,
     1283                                               tr_bool            wasRunning,
    12841284                                               void             * user_data );
    12851285
Note: See TracChangeset for help on using the changeset viewer.