Skip to content

Commit

Permalink
Merge pull request #854 from ouabing/bug/resumable
Browse files Browse the repository at this point in the history
Fix error when resume download on iOS
  • Loading branch information
itinance authored Feb 20, 2020
2 parents a3e5a82 + f885f97 commit d5a8831
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FS.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ var RNFS = {

if (options.resumable) {
subscriptions.push(RNFS_NativeEventEmitter.addListener('DownloadResumable', (res) => {
if (res.jobId === joibId) options.resumable(res);
if (res.jobId === jobId) options.resumable(res);
}));
}

Expand Down
2 changes: 1 addition & 1 deletion RNFSManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ + (BOOL)requiresMainQueueSetup
if (hasResumableCallback) {
params.resumableCallback = ^() {
if (self.bridge != nil)
[self sendEventWithName:@"DownloadResumable" body:nil];
[self sendEventWithName:@"DownloadResumable" body:@{@"jobId": jobId}];
};
}

Expand Down

0 comments on commit d5a8831

Please sign in to comment.