start torrents by enumerating (trying to figure out a bug)

This commit is contained in:
Mitchell Livingston 2006-10-01 16:34:02 +00:00
parent e53830d875
commit 7e85221109
1 changed files with 4 additions and 1 deletions

View File

@ -655,7 +655,10 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
- (void) resumeTorrentsNoWait: (NSArray *) torrents - (void) resumeTorrentsNoWait: (NSArray *) torrents
{ {
[torrents makeObjectsPerformSelector: @selector(startTransfer)]; NSEnumerator * enumerator = [torrents objectEnumerator];
Torrent * torrent;
while ((torrent = [enumerator nextObject]))
[torrent startTransfer];
[self updateUI: nil]; [self updateUI: nil];
[self applyFilter: nil]; [self applyFilter: nil];