mirror of
https://github.com/transmission/transmission
synced 2025-02-03 21:12:05 +00:00
Slight change in the way queueing works when changing preferences.
This commit is contained in:
parent
d5e6d5a1fd
commit
8bddde255c
1 changed files with 5 additions and 4 deletions
|
@ -1382,15 +1382,16 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
|||
enumerator = [sortedTorrents objectEnumerator];
|
||||
while ((torrent = [enumerator nextObject]))
|
||||
{
|
||||
if ([torrent progress] >= 1.0)
|
||||
[torrent startTransfer];
|
||||
else
|
||||
if ([torrent waitingToStart])
|
||||
{
|
||||
if ([torrent waitingToStart] && desiredActive > 0)
|
||||
if ([torrent progress] >= 1.0)
|
||||
[torrent startTransfer];
|
||||
else if (desiredActive > 0)
|
||||
{
|
||||
[torrent startTransfer];
|
||||
desiredActive--;
|
||||
}
|
||||
else;
|
||||
}
|
||||
|
||||
[torrent update];
|
||||
|
|
Loading…
Reference in a new issue