Ignore:
Timestamp:
Jun 30, 2007, 4:13:10 PM (15 years ago)
Author:
livings124
Message:

if a transfer is checking decrease the queue count for both queues but don't start the transfer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r2239 r2249  
    14111411    while ((torrent = [enumerator nextObject]))
    14121412    {
    1413         if (![torrent isActive] && [torrent waitingToStart])
     1413        if (![torrent isActive] && ![torrent isChecking] && [torrent waitingToStart])
    14141414        {
    14151415            if (![torrent allDownloaded])
     
    14511451    NSEnumerator * enumerator = [fTorrents objectEnumerator];
    14521452    while ((torrent = [enumerator nextObject]))
    1453         if ([torrent isActive] && ![torrent isStalled] && ![torrent isError])
     1453    {
     1454        if ([torrent isChecking])
     1455        {
     1456            desired--;
     1457            if (desired <= 0)
     1458                return 0;
     1459        }
     1460        else if ([torrent isActive] && ![torrent isStalled] && ![torrent isError])
    14541461        {
    14551462            if ([torrent allDownloaded] != downloadQueue)
     
    14601467            }
    14611468        }
     1469        else;
     1470    }
    14621471   
    14631472    return desired;
Note: See TracChangeset for help on using the changeset viewer.