Ensure the downloader is started from the main thread

This commit is contained in:
Olivier Poitrey 2010-06-21 01:30:12 +02:00
parent 65549dec10
commit 7f7dfbecd6
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}