Skip to content
Browse files

call progress block regardless of completion block, options

  • Loading branch information...
1 parent 899d67b commit 827fcac89bc308a7b54355a056e869626e8d99fb @lavoy lavoy committed May 8, 2013
Showing with 5 additions and 7 deletions.
  1. +5 −7 SDWebImage/SDWebImageDownloaderOperation.m
View
12 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 827fcac

Please sign in to comment.
Something went wrong with that request. Please try again.