allow sleep if the only active torrents are stalled or have errors
This commit is contained in:
parent
aa80a14a79
commit
65ac0968ef
|
@ -2990,7 +2990,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
|||
active = NO;
|
||||
enumerator = [fTorrents objectEnumerator];
|
||||
while ((torrent = [enumerator nextObject]))
|
||||
if ([torrent isActive])
|
||||
if ([torrent isActive] && ![torrent isStalled] && ![torrent isError])
|
||||
{
|
||||
active = YES;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue