From 85759911b7f6bf6413d5cbb58a3687fe867204aa Mon Sep 17 00:00:00 2001 From: Matej Bukovinski Date: Thu, 13 Dec 2012 23:39:40 +0100 Subject: [PATCH] Changed the expected size to -1 in the initial progress callback. - simplifies callback code by removing possible division by 0 issues during progress computation --- SDWebImage/SDWebImageDownloaderOperation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/SDWebImageDownloaderOperation.m b/SDWebImage/SDWebImageDownloaderOperation.m index 65f9af2..52f7af9 100644 --- a/SDWebImage/SDWebImageDownloaderOperation.m +++ b/SDWebImage/SDWebImageDownloaderOperation.m @@ -73,7 +73,7 @@ { if (self.progressBlock) { - self.progressBlock(0, 0); + self.progressBlock(0, -1); } [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStartNotification object:self]; }