Changed the expected size to -1 in the initial progress callback.
- simplifies callback code by removing possible division by 0 issues during progress computation
This commit is contained in:
parent
b4fb940cbc
commit
85759911b7
|
@ -73,7 +73,7 @@
|
||||||
{
|
{
|
||||||
if (self.progressBlock)
|
if (self.progressBlock)
|
||||||
{
|
{
|
||||||
self.progressBlock(0, 0);
|
self.progressBlock(0, -1);
|
||||||
}
|
}
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStartNotification object:self];
|
[[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStartNotification object:self];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue