From 7f7dfbecd630b00a87715cc49026fccd2b406a0e Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Mon, 21 Jun 2010 01:30:12 +0200 Subject: [PATCH] Ensure the downloader is started from the main thread --- SDWebImageDownloader.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImageDownloader.m b/SDWebImageDownloader.m index 93c406ff..230f5626 100644 --- a/SDWebImageDownloader.m +++ b/SDWebImageDownloader.m @@ -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; }