Changeset 9501


Ignore:
Timestamp:
Nov 9, 2009, 6:36:47 AM (13 years ago)
Author:
charles
Message:

(trunk libT) #2552 "torrent state doesn't change automatically anymore" new version of r9482 that doesn't have the problems pointed out in #2557

File:
1 edited

Legend:

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

    r9494 r9501  
    166166
    167167    tr_bool                    isRunning;
     168    tr_bool                    needsCompletenessCheck;
    168169
    169170    struct block_request     * requests;
     
    13841385                    }
    13851386                }
     1387
     1388                t->needsCompletenessCheck = TRUE;
    13861389            }
    13871390            break;
     
    28842887    }
    28852888
     2889    /* run the completeness check for any torrents that need it */
     2890    tor = NULL;
     2891    while(( tor = tr_torrentNext( mgr->session, tor ))) {
     2892        if( tor->torrentPeers->needsCompletenessCheck ) {
     2893            tor->torrentPeers->needsCompletenessCheck  = FALSE;
     2894            tr_torrentRecheckCompleteness( tor );
     2895        }
     2896    }
     2897
    28862898    /* possibly stop torrents that have an error */
    28872899    tor = NULL;
Note: See TracChangeset for help on using the changeset viewer.