Ensure the downloader is started from the main thread
This commit is contained in:
parent
65549dec10
commit
7f7dfbecd6
|
@ -23,7 +23,7 @@
|
|||
SDWebImageDownloader *downloader = [[[SDWebImageDownloader alloc] init] autorelease];
|
||||
downloader.url = url;
|
||||
downloader.delegate = delegate;
|
||||
[downloader start];
|
||||
[downloader performSelectorOnMainThread:@selector(start) withObject:nil waitUntilDone:YES];
|
||||
return downloader;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue