save some calls
This commit is contained in:
parent
171bb5aebd
commit
26c79a5d43
|
@ -1589,7 +1589,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
NSEnumerator * enumerator = [fTorrents objectEnumerator];
|
NSEnumerator * enumerator = [fTorrents objectEnumerator];
|
||||||
Torrent * torrent;
|
Torrent * torrent;
|
||||||
while ((torrent = [enumerator nextObject]))
|
while ((torrent = [enumerator nextObject]))
|
||||||
if ([torrent waitingToStart])
|
if (![torrent isActive] && [torrent waitingToStart])
|
||||||
[torrent startTransfer];
|
[torrent startTransfer];
|
||||||
|
|
||||||
[self updateUI: nil];
|
[self updateUI: nil];
|
||||||
|
|
Loading…
Reference in New Issue