Change finished check from equal to equal or greater than to protect accident condition

This commit is contained in:
DreamPiggy 2017-10-09 12:48:29 +08:00
parent e59d34fdb7
commit 9fef316dfa
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ didReceiveResponse:(NSURLResponse *)response
// Get the total bytes downloaded
const NSInteger totalSize = imageData.length;
// Get the finish status
BOOL finished = (self.expectedSize == totalSize);
BOOL finished = (totalSize >= self.expectedSize);
if (!_imageSource) {
_imageSource = CGImageSourceCreateIncremental(NULL);