1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00
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");