save some calls

This commit is contained in:
Mitchell Livingston 2007-01-09 01:53:43 +00:00
parent 171bb5aebd
commit 26c79a5d43
1 changed files with 1 additions and 1 deletions

View File

@ -1589,7 +1589,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
NSEnumerator * enumerator = [fTorrents objectEnumerator];
Torrent * torrent;
while ((torrent = [enumerator nextObject]))
if ([torrent waitingToStart])
if (![torrent isActive] && [torrent waitingToStart])
[torrent startTransfer];
[self updateUI: nil];