Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ios
/
yh_sdwebimage
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
DreamPiggy
2017-10-09 12:48:29 +0800
Commit
9fef316dfa1f31fd96dc8a4e402f1e5f91756f9d
1 parent
e59d34fd
Change finished check from equal to equal or greater than to protect accident condition
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
SDWebImage/SDWebImageDownloaderOperation.m
SDWebImage/SDWebImageDownloaderOperation.m
View file @
9fef316
...
...
@@ -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
==
total
Size
);
BOOL
finished
=
(
totalSize
>=
self
.
expected
Size
);
if
(
!
_imageSource
)
{
_imageSource
=
CGImageSourceCreateIncremental
(
NULL
);
...
...
Please
register
or
login
to post a comment