now request app image on multiple threads

This commit is contained in:
Diego Waxemberg
2015-01-08 21:36:29 -05:00
parent 7cf521272a
commit ccd8b3332e
3 changed files with 40 additions and 23 deletions

View File

@@ -27,6 +27,7 @@
NSData* _cert;
NSString* _currentGame;
DiscoveryManager* _discMan;
AppManager* _appManager;
UIAlertView* _pairAlert;
UIScrollView* hostScrollView;
int currentPosition;
@@ -77,7 +78,11 @@ static StreamConfiguration* streamConfig;
dispatch_async(dispatch_get_main_queue(), ^{
[self updateApps];
});
[AppManager retrieveAppAssets:appList withManager:hMan andCallback:self];
if (_appManager != nil) {
[_appManager stopRetrieving];
}
_appManager = [[AppManager alloc] initWithHost:_selectedHost andCallback:self];
[_appManager retrieveAssets:appList];
});
}