mirror of
https://github.com/zoriya/react-native-background-downloader.git
synced 2026-05-26 15:47:59 +00:00
fix condition
This commit is contained in:
@@ -385,9 +385,8 @@ RCT_EXPORT_METHOD(completeHandler:(nonnull NSString *)jobId
|
||||
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error {
|
||||
NSLog(@"[RNBackgroundDownloader] - [didCompleteWithError]");
|
||||
@synchronized (sharedLock) {
|
||||
if (error != nil) {
|
||||
if (error == nil)
|
||||
return;
|
||||
}
|
||||
|
||||
RNBGDTaskConfig *taskCofig = taskToConfigMap[@(task.taskIdentifier)];
|
||||
if (taskCofig == nil)
|
||||
|
||||
Reference in New Issue
Block a user