Ignore:
Timestamp:
Feb 15, 2008, 4:00:46 PM (15 years ago)
Author:
charles
Message:

modify "verify local data" to not lose the blocks in incomplete pieces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r5011 r5042  
    4949#include "trevent.h"
    5050#include "utils.h"
     51#include "verify.h"
    5152
    5253/***
     
    601602    s->leftUntilDone = tr_cpLeftUntilDone( tor->completion );
    602603
    603     if( tor->recheckState == TR_RECHECK_NOW )
     604    if( tor->verifyState == TR_VERIFY_NOW )
    604605        s->status = TR_STATUS_CHECK;
    605     else if( tor->recheckState == TR_RECHECK_WAIT )
     606    else if( tor->verifyState == TR_VERIFY_WAIT )
    606607        s->status = TR_STATUS_CHECK_WAIT;
    607608    else if( !tor->isRunning )
     
    949950        tr_fastResumeLoad( tor, TR_FR_PROGRESS, NULL );
    950951        tor->isRunning = 1;
    951         tr_ioRecheckAdd( tor, checkAndStartCB );
     952        tr_verifyAdd( tor, checkAndStartCB );
    952953    }
    953954
     
    970971    tr_globalLock( tor->handle );
    971972
    972     tr_ioRecheckRemove( tor );
     973    tr_verifyRemove( tor );
    973974    tr_torrentUncheck( tor );
    974     tr_ioRecheckAdd( tor, torrentRecheckDoneCB );
     975    tr_verifyAdd( tor, torrentRecheckDoneCB );
    975976
    976977    tr_globalUnlock( tor->handle );
     
    984985
    985986    tr_torrent * tor = vtor;
    986     tr_ioRecheckRemove( tor );
     987    tr_verifyRemove( tor );
    987988    tr_peerMgrStopTorrent( tor->handle->peerMgr, tor->info.hash );
    988989    tr_trackerStop( tor->tracker );
Note: See TracChangeset for help on using the changeset viewer.