call progress block regardless of completion block, options
Showing
1 changed file
with
2 additions
and
4 deletions
@@ -241,13 +241,11 @@ | @@ -241,13 +241,11 @@ | ||
241 | } | 241 | } |
242 | 242 | ||
243 | CFRelease(imageSource); | 243 | CFRelease(imageSource); |
244 | - | ||
245 | - NSUInteger received = self.imageData.length; | 244 | + } |
246 | 245 | ||
247 | if (self.progressBlock) | 246 | if (self.progressBlock) |
248 | { | 247 | { |
249 | - self.progressBlock(received, self.expectedSize); | ||
250 | - } | 248 | + self.progressBlock(self.imageData.length, self.expectedSize); |
251 | } | 249 | } |
252 | } | 250 | } |
253 | 251 |
-
Please register or login to post a comment