Skip to content

Commit 7f7dfbe

Browse files
author
Olivier Poitrey
committed
Ensure the downloader is started from the main thread
1 parent 65549de commit 7f7dfbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SDWebImageDownloader.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ + (id)downloaderWithURL:(NSURL *)url delegate:(id<SDWebImageDownloaderDelegate>)
2323
SDWebImageDownloader *downloader = [[[SDWebImageDownloader alloc] init] autorelease];
2424
downloader.url = url;
2525
downloader.delegate = delegate;
26-
[downloader start];
26+
[downloader performSelectorOnMainThread:@selector(start) withObject:nil waitUntilDone:YES];
2727
return downloader;
2828
}
2929

0 commit comments

Comments
 (0)