mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-05 07:26:19 +00:00
now cache app images and reuse them when connecting to the same host
This commit is contained in:
@@ -78,11 +78,9 @@ static StreamConfiguration* streamConfig;
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[self updateApps];
|
||||
});
|
||||
if (_appManager != nil) {
|
||||
[_appManager stopRetrieving];
|
||||
}
|
||||
_appManager = [[AppManager alloc] initWithHost:_selectedHost andCallback:self];
|
||||
[_appManager retrieveAssets:appList];
|
||||
|
||||
[_appManager stopRetrieving];
|
||||
[_appManager retrieveAssets:appList fromHost:_selectedHost];
|
||||
});
|
||||
}
|
||||
|
||||
@@ -299,6 +297,8 @@ static StreamConfiguration* streamConfig;
|
||||
_uniqueId = [CryptoManager getUniqueID];
|
||||
_cert = [CryptoManager readCertFromFile];
|
||||
|
||||
_appManager = [[AppManager alloc] initWithCallback:self];
|
||||
|
||||
// Only initialize the host picker list once
|
||||
if (hostList == nil) {
|
||||
hostList = [[NSMutableSet alloc] init];
|
||||
|
||||
Reference in New Issue
Block a user