Send out progress callbacks sooner.
- as soon as the NSURLConnection gets initialized - helps to allocate and show progress indication sooner and prevent large delays without progress indication (for example when the server takes long to respond) - estimated size is always 0 at this point, clients can use this to decide if they want to handle this callback or skip it
This commit is contained in:
parent
37f71de26c
commit
b4fb940cbc
|
@ -71,6 +71,10 @@
|
|||
|
||||
if (self.connection)
|
||||
{
|
||||
if (self.progressBlock)
|
||||
{
|
||||
self.progressBlock(0, 0);
|
||||
}
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStartNotification object:self];
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue