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:
Matej Bukovinski 2012-12-13 23:39:40 +01:00
parent b4fb940cbc
commit 85759911b7
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@
{
if (self.progressBlock)
{
self.progressBlock(0, 0);
self.progressBlock(0, -1);
}
[[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStartNotification object:self];
}