mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-21 15:56:55 +00:00
Speed up app icon load time by 2 seconds by only waiting if it failed
This commit is contained in:
1 parent
46fe7a8aed
commit
6dbb938368
1 file changed
+3
-1
@@ -28,7 +28,9 @@ static const int MAX_ATTEMPTS = 5;
|
||||
appImage = [UIImage imageWithData:appAssetResp.data];
|
||||
self.app.image = UIImagePNGRepresentation(appImage);
|
||||
|
||||
[NSThread sleepForTimeInterval:RETRY_DELAY];
|
||||
if (![self isCancelled] && appImage == nil) {
|
||||
[NSThread sleepForTimeInterval:RETRY_DELAY];
|
||||
}
|
||||
}
|
||||
[self performSelectorOnMainThread:@selector(sendCallbackForApp:) withObject:self.app waitUntilDone:NO];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user