mirror of
https://github.com/status-im/react-native-fs.git
synced 2026-08-27 10:01:09 +00:00
Merge pull request #245 from locly/master
[iOS] Cancelling download causes promise rejection to be called twice
This commit is contained in:
+3
-1
@@ -106,7 +106,9 @@
|
||||
|
||||
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error
|
||||
{
|
||||
return error ? _params.errorCallback(error) : nil;
|
||||
if (error && error.code != -999) {
|
||||
_params.errorCallback(error);
|
||||
}
|
||||
}
|
||||
|
||||
- (void)stopDownload
|
||||
|
||||
Reference in New Issue
Block a user