Skip to content

Commit

Permalink
Huy's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmoon committed Sep 11, 2017
1 parent f84a073 commit 524081e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/ASNetworkImageNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,14 @@ - (void)displayWillStartAsynchronously:(BOOL)asynchronously
ASDN::MutexLocker l(__instanceLock__);

if (_imageLoaded == NO && _URLs.count > 0 && _downloadIdentifier == nil) {
for (NSURL *url in _URLs) {
for (NSURL *url in [_URLs reverseObjectEnumerator]) {
UIImage *result = [[_cache synchronouslyFetchedCachedImageWithURL:url] asdk_image];
if (result) {
[self _locked_setCurrentImageQuality:1.0];
[self _locked__setImage:result];

_imageLoaded = YES;
break;
}
}
}
Expand Down

0 comments on commit 524081e

Please sign in to comment.