Merge pull request #2051 from dreampiggy/fix_progressive_totalsize_protect
Change finished check from equal to equal or greater than to protect …
This commit is contained in:
commit
322070e2c4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue