Deliver SPUDownloaderSession delegate messages on the main queue

This is the behavior of SPDownloaderDeprecated.

Github #1236
This commit is contained in:
Brian Bergstrand committed 2018-05-25 14:32:57 -05:00
1 parent 8a8ce49a23
commit a18282ec79
1 file changed
+1 -2
+1 -2
View File
@@ -29,8 +29,7 @@
- (void)startDownloadWithRequest:(SPUURLRequest *)request
{
NSOperationQueue *queue = [[NSOperationQueue alloc] init];
queue.maxConcurrentOperationCount = 1;
NSOperationQueue *queue = [NSOperationQueue mainQueue];
self.downloadSession = [NSURLSession
sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]
delegate:self