This commit is contained in:
Mitchell Livingston 2010-01-08 02:48:08 +00:00
parent 0c34a39883
commit 521a1dba2b
2 changed files with 5 additions and 0 deletions

View File

@ -1761,6 +1761,8 @@ typedef enum
}
}
NSLog(@"%@", removeIndexes);
NSAssert([removeIndexes count] > 0, @"Trying to remove no trackers.");
if ([[NSUserDefaults standardUserDefaults] boolForKey: @"WarningRemoveTrackers"])

View File

@ -652,7 +652,10 @@ int trashDataFile(const char * filename)
int newCount = 0;
for (NSUInteger oldIndex = [indexes firstIndex]; oldIndex != NSNotFound; oldIndex = [indexes indexGreaterThanIndex: oldIndex])
{
NSLog(@"oldIndex: %d %s", oldIndex, fInfo->trackers[oldIndex].announce);
trackerStructs[newCount++] = fInfo->trackers[oldIndex];
}
const BOOL success = tr_torrentSetAnnounceList(fHandle, trackerStructs, newCount);
NSAssert(success, @"Removing tracker addresses failed");