Merge pull request #249 from matej/early-progress-callback

Early progress callback
This commit is contained in:
Olivier Poitrey 2012-12-13 15:25:28 -08:00
commit 7cd4d8e155
2 changed files with 5 additions and 0 deletions

View File

@ -140,6 +140,7 @@
53922D70148C55820056699D /* Products */,
);
sourceTree = "<group>";
usesTabs = 0;
};
53922D70148C55820056699D /* Products */ = {
isa = PBXGroup;

View File

@ -71,6 +71,10 @@
if (self.connection)
{
if (self.progressBlock)
{
self.progressBlock(0, -1);
}
[[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStartNotification object:self];
}
else