very small simplification

This commit is contained in:
Mitchell Livingston 2007-01-15 04:45:11 +00:00
parent 29bf2677ec
commit 67580ce1fe
1 changed files with 2 additions and 2 deletions

View File

@ -1436,7 +1436,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 isActive] && [torrent allDownloaded])
if ([torrent isSeeding])
[tempTorrents addObject: torrent];
}
else if ([fFilterType isEqualToString: @"Download"])
@ -1444,7 +1444,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 isActive] && ![torrent allDownloaded])
if ([torrent isActive] && ![torrent isSeeding])
[tempTorrents addObject: torrent];
}
else