Skip to content
This repository was archived by the owner on Feb 27, 2022. It is now read-only.

Commit 67b34fd

Browse files
author
Elad Gil
committed
made the NSURLSessionDownloadTask pointer in download method __strong, maybe it will help stuff
1 parent ff64252 commit 67b34fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNBackgroundDownloader.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ + (void)setCompletionHandlerWithIdentifier: (NSString *)identifier completionHan
121121
}
122122
}
123123

124-
NSURLSessionDownloadTask *task = [urlSession downloadTaskWithRequest:request];
124+
NSURLSessionDownloadTask __strong *task = [urlSession downloadTaskWithRequest:request];
125125
RNBGDTaskConfig *taskConfig = [[RNBGDTaskConfig alloc] initWithDictionary: @{@"id": identifier, @"destination": destination}];
126126
@synchronized(taskToConfigMap) {
127127
taskToConfigMap[@(task.taskIdentifier)] = taskConfig;

0 commit comments

Comments
 (0)