fix a glitch with using the same address more than once in the tracker removal code

This commit is contained in:
Mitchell Livingston 2009-09-30 00:11:24 +00:00
parent d53f271f73
commit bb4e35bd1e
1 changed files with 3 additions and 2 deletions

View File

@ -1719,8 +1719,9 @@ typedef enum
id item = [fTrackers objectAtIndex: i];
if ([item isKindOfClass: [NSNumber class]])
{
for (NSInteger j = i+1; j < [fTrackers count] && ![[fTrackers objectAtIndex: j] isKindOfClass: [NSNumber class]]; ++j, ++i)
[addresses addObject: [fTrackers objectAtIndex: j]];
++i;
for (NSInteger j = i; j < [fTrackers count] && ![[fTrackers objectAtIndex: j] isKindOfClass: [NSNumber class]]; ++j, ++i)
[addresses addObject: [[fTrackers objectAtIndex: j] fullAnnounceAddress]];
--i;
}
else