start torrents by enumerating (trying to figure out a bug)
This commit is contained in:
parent
e53830d875
commit
7e85221109
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue