Permalink
Browse files

Merge pull request #389 from lavoy/master

Calls progress block regardless of completion block and options
  • Loading branch information...
2 parents 899d67b + 827fcac commit b8ab9d77b5dc18203d8a75990133b72cd3556cc1 @rs committed May 9, 2013
Showing with 5 additions and 7 deletions.
  1. +5 −7 SDWebImage/SDWebImageDownloaderOperation.m
@@ -241,13 +241,11 @@ - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
}
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);
}
}

0 comments on commit b8ab9d7

Please sign in to comment.