mirror of
https://github.com/transmission/transmission
synced 2024-12-24 16:52:39 +00:00
add some NSLogs to help smoke out http://forum.transmissionbt.com/viewtopic.php?f=1&t=9105&start=105#p43232
This commit is contained in:
parent
0c34a39883
commit
521a1dba2b
2 changed files with 5 additions and 0 deletions
|
@ -1761,6 +1761,8 @@ typedef enum
|
|||
}
|
||||
}
|
||||
|
||||
NSLog(@"%@", removeIndexes);
|
||||
|
||||
NSAssert([removeIndexes count] > 0, @"Trying to remove no trackers.");
|
||||
|
||||
if ([[NSUserDefaults standardUserDefaults] boolForKey: @"WarningRemoveTrackers"])
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue