call progress block regardless of completion block, options
Showing
1 changed file
with
5 additions
and
7 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; | ||
246 | - | ||
247 | - if (self.progressBlock) | ||
248 | - { | ||
249 | - self.progressBlock(received, self.expectedSize); | ||
250 | - } | 244 | + } |
245 | + | ||
246 | + if (self.progressBlock) | ||
247 | + { | ||
248 | + self.progressBlock(self.imageData.length, self.expectedSize); | ||
251 | } | 249 | } |
252 | } | 250 | } |
253 | 251 |
-
Please register or login to post a comment