Ignore:
Timestamp:
Nov 8, 2009, 11:20:00 PM (13 years ago)
Author:
charles
Message:

(trunk libT) #2548: T's request queue can send out too many duplicate requests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r9470 r9494  
    16781678{
    16791679    tr_file_index_t i;
    1680 
    1681     assert( tr_isTorrent( tor ) );
    1682 
     1680    assert( tr_isTorrent( tor ) );
    16831681    tr_torrentLock( tor );
    16841682
    16851683    for( i = 0; i < fileCount; ++i )
    16861684        tr_torrentInitFilePriority( tor, files[i], priority );
    1687 
    16881685    tr_torrentSetDirty( tor );
     1686    tr_peerMgrRebuildRequests( tor );
     1687
    16891688    tr_torrentUnlock( tor );
    16901689}
     
    18271826{
    18281827    assert( tr_isTorrent( tor ) );
    1829 
    18301828    tr_torrentLock( tor );
     1829
    18311830    tr_torrentInitFileDLs( tor, files, fileCount, doDownload );
    18321831    tr_torrentSetDirty( tor );
     1832    tr_peerMgrRebuildRequests( tor );
     1833
    18331834    tr_torrentUnlock( tor );
    18341835}
Note: See TracChangeset for help on using the changeset viewer.