[torrent release];
if (!fAddingTransfers)
- fAddingTransfers = [[NSMutableArray alloc] init];
+ fAddingTransfers = [[NSMutableSet alloc] init];
[fAddingTransfers addObject: torrent];
}
}
[torrent release];
if (!fAddingTransfers)
- fAddingTransfers = [[NSMutableArray alloc] init];
+ fAddingTransfers = [[NSMutableSet alloc] init];
[fAddingTransfers addObject: torrent];
[self fullUpdateUI];
[torrent release];
if (!fAddingTransfers)
- fAddingTransfers = [[NSMutableArray alloc] init];
+ fAddingTransfers = [[NSMutableSet alloc] init];
[fAddingTransfers addObject: torrent];
}
[torrent release];
if (!fAddingTransfers)
- fAddingTransfers = [[NSMutableArray alloc] init];
+ fAddingTransfers = [[NSMutableSet alloc] init];
[fAddingTransfers addObject: torrent];
[self fullUpdateUI];
{
CGFloat dlRate = 0.0, ulRate = 0.0;
BOOL completed = NO;
- #warning use a block to do in parallel?
for (Torrent * torrent in fTorrents)
{
[torrent update];
return objDisplay == objAll;
}];
- if (index == NSNotFound){
- [(Torrent *)objDisplay setPreviousFinishedPieces: nil];}
+ if (index == NSNotFound)
+ [(Torrent *)objDisplay setPreviousFinishedPieces: nil];
else
[unusedIndexesInAll removeIndex: index];
};
[torrent release];
if (!fAddingTransfers)
- fAddingTransfers = [[NSMutableArray alloc] init];
+ fAddingTransfers = [[NSMutableSet alloc] init];
[fAddingTransfers addObject: torrent];
[self fullUpdateUI];