diff --git a/Limelight/Network/AppAssetManager.m b/Limelight/Network/AppAssetManager.m index d7510a0b..a1e7975d 100644 --- a/Limelight/Network/AppAssetManager.m +++ b/Limelight/Network/AppAssetManager.m @@ -41,7 +41,8 @@ retriever.app = app; retriever.host = _host; retriever.callback = _callback; - retriever.cache = useCache ? _imageCache : nil; + retriever.cache = _imageCache; + retriever.useCache = useCache; [_opQueue addOperation:retriever]; } } diff --git a/Limelight/Network/AppAssetRetriever.h b/Limelight/Network/AppAssetRetriever.h index 25301e1a..a852a794 100644 --- a/Limelight/Network/AppAssetRetriever.h +++ b/Limelight/Network/AppAssetRetriever.h @@ -17,5 +17,6 @@ @property (nonatomic) App* app; @property (nonatomic) NSMutableDictionary* cache; @property (nonatomic) id callback; +@property (nonatomic) BOOL useCache; @end diff --git a/Limelight/Network/AppAssetRetriever.m b/Limelight/Network/AppAssetRetriever.m index 3a220eab..c3cd787e 100644 --- a/Limelight/Network/AppAssetRetriever.m +++ b/Limelight/Network/AppAssetRetriever.m @@ -19,7 +19,7 @@ static const double RETRY_DELAY = 1; // seconds - (void) main { UIImage* appImage = nil; while (![self isCancelled] && appImage == nil) { - if (self.cache) { + if (self.useCache) { @synchronized(self.cache) { UIImage* cachedImage = [self.cache objectForKey:self.app.appId]; if (cachedImage != nil) {