mirror of
https://github.com/transmission/transmission.git
synced 2025-12-23 11:58:36 +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:
@@ -1761,6 +1761,8 @@ typedef enum
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NSLog(@"%@", removeIndexes);
|
||||||
|
|
||||||
NSAssert([removeIndexes count] > 0, @"Trying to remove no trackers.");
|
NSAssert([removeIndexes count] > 0, @"Trying to remove no trackers.");
|
||||||
|
|
||||||
if ([[NSUserDefaults standardUserDefaults] boolForKey: @"WarningRemoveTrackers"])
|
if ([[NSUserDefaults standardUserDefaults] boolForKey: @"WarningRemoveTrackers"])
|
||||||
|
|||||||
@@ -652,7 +652,10 @@ int trashDataFile(const char * filename)
|
|||||||
|
|
||||||
int newCount = 0;
|
int newCount = 0;
|
||||||
for (NSUInteger oldIndex = [indexes firstIndex]; oldIndex != NSNotFound; oldIndex = [indexes indexGreaterThanIndex: oldIndex])
|
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];
|
trackerStructs[newCount++] = fInfo->trackers[oldIndex];
|
||||||
|
}
|
||||||
|
|
||||||
const BOOL success = tr_torrentSetAnnounceList(fHandle, trackerStructs, newCount);
|
const BOOL success = tr_torrentSetAnnounceList(fHandle, trackerStructs, newCount);
|
||||||
NSAssert(success, @"Removing tracker addresses failed");
|
NSAssert(success, @"Removing tracker addresses failed");
|
||||||
|
|||||||
Reference in New Issue
Block a user