Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions RNFSManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ + (BOOL)requiresMainQueueSetup
params.method = method;

params.completeCallback = ^(NSString* body, NSURLResponse *resp) {
[self.uploaders removeObjectForKey:[jobId stringValue]];

NSMutableDictionary* result = [[NSMutableDictionary alloc] initWithDictionary: @{@"jobId": jobId,
@"body": body}];
Expand All @@ -570,6 +571,7 @@ + (BOOL)requiresMainQueueSetup
};

params.errorCallback = ^(NSError* error) {
[self.uploaders removeObjectForKey:[jobId stringValue]];
return [self reject:reject withError:error];
};

Expand Down