From 827fcac89bc308a7b54355a056e869626e8d99fb Mon Sep 17 00:00:00 2001 From: Andy LaVoy Date: Wed, 8 May 2013 15:35:37 -0700 Subject: [PATCH] call progress block regardless of completion block, options --- SDWebImage/SDWebImageDownloaderOperation.m | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/SDWebImage/SDWebImageDownloaderOperation.m b/SDWebImage/SDWebImageDownloaderOperation.m index 9255411b..d8b56098 100644 --- a/SDWebImage/SDWebImageDownloaderOperation.m +++ b/SDWebImage/SDWebImageDownloaderOperation.m @@ -241,13 +241,11 @@ } CFRelease(imageSource); - - NSUInteger received = self.imageData.length; - - if (self.progressBlock) - { - self.progressBlock(received, self.expectedSize); - } + } + + if (self.progressBlock) + { + self.progressBlock(self.imageData.length, self.expectedSize); } }