This repository was archived by the owner on Feb 27, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ @implementation RNBackgroundDownloader {
22
22
NSMutableDictionary <NSString *, NSData *> *idToResumeDataMap;
23
23
NSMutableDictionary <NSString *, NSNumber *> *idToPercentMap;
24
24
NSMutableDictionary <NSString *, NSDictionary *> *progressReports;
25
- NSOperationQueue *downloadOperationsQueue;
26
25
NSDate *lastProgressReport;
27
26
}
28
27
@@ -67,7 +66,6 @@ - (id) init {
67
66
NSString *bundleIdentifier = [[NSBundle mainBundle ] bundleIdentifier ];
68
67
NSString *sessonIdentifier = [bundleIdentifier stringByAppendingString: @" .backgrounddownloadtask" ];
69
68
sessionConfig = [NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier: sessonIdentifier];
70
- downloadOperationsQueue = [[NSOperationQueue alloc ] init ];
71
69
progressReports = [[NSMutableDictionary alloc ] init ];
72
70
lastProgressReport = [[NSDate alloc ] init ];
73
71
}
@@ -76,7 +74,7 @@ - (id) init {
76
74
77
75
- (void )lazyInitSession {
78
76
if (urlSession == nil ) {
79
- urlSession = [NSURLSession sessionWithConfiguration: sessionConfig delegate: self delegateQueue: downloadOperationsQueue ];
77
+ urlSession = [NSURLSession sessionWithConfiguration: sessionConfig delegate: self delegateQueue: nil ];
80
78
}
81
79
}
82
80
You can’t perform that action at this time.
0 commit comments