Minor efficiency change in validate remove algorithm.
This commit is contained in:
parent
06a5457f2b
commit
d9542e96a7
|
@ -1273,13 +1273,18 @@ static void sleepCallBack( void * controller, io_service_t y,
|
||||||
for (i = [indexSet firstIndex]; i != NSNotFound; i = [indexSet indexGreaterThanIndex: i])
|
for (i = [indexSet firstIndex]; i != NSNotFound; i = [indexSet indexGreaterThanIndex: i])
|
||||||
{
|
{
|
||||||
torrent = [fTorrents objectAtIndex: i];
|
torrent = [fTorrents objectAtIndex: i];
|
||||||
if ([torrent isActive])
|
if (!active && [torrent isActive])
|
||||||
|
{
|
||||||
active = YES;
|
active = YES;
|
||||||
if ([torrent publicTorrent])
|
if (canDelete)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (!canDelete && [torrent publicTorrent])
|
||||||
|
{
|
||||||
canDelete = YES;
|
canDelete = YES;
|
||||||
|
if (active)
|
||||||
if (active && canDelete)
|
break;
|
||||||
break;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//append or remove ellipsis when needed
|
//append or remove ellipsis when needed
|
||||||
|
|
Loading…
Reference in New Issue