Ignore:
Timestamp:
Sep 12, 2010, 6:58:49 PM (11 years ago)
Author:
livings124
Message:

#3513 inactive limit should set torrent state as finished, not stopped

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r11181 r11204  
    436436
    437437        tor->isStopping = TRUE;
     438        tor->finishedSeedingByIdle = TRUE;
    438439
    439440        /* maybe notify the client */
     
    771772
    772773    tor->error = TR_STAT_OK;
     774   
     775    tor->finishedSeedingByIdle = FALSE;
    773776
    774777    tr_peerMgrAddTorrent( session->peerMgr, tor );
     
    12001203    }
    12011204
    1202     #warning (maybe) do something for idle?
    12031205    /* s->haveValid is here to make sure a torrent isn't marked 'finished'
    12041206     * when the user hits "uncheck all" prior to starting the torrent... */
    1205     s->finished = seedRatioApplies && !seedRatioBytesLeft && s->haveValid;
     1207    s->finished = tor->finishedSeedingByIdle || (seedRatioApplies && !seedRatioBytesLeft && s->haveValid);
    12061208
    12071209    if( !seedRatioApplies || s->finished )
     
    14931495        tor->startDate = tor->anyDate = now;
    14941496        tr_torrentClearError( tor );
     1497        tor->finishedSeedingByIdle = FALSE;
    14951498
    14961499        tr_torrentResetTransferStats( tor );
Note: See TracChangeset for help on using the changeset viewer.